[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stability issues of ldtp client: get httplib.CannotSendRequest or httplib.ResponseNotReady exceptions during long running #18

Open
truan-wang opened this issue Dec 11, 2015 · 0 comments

Comments

@truan-wang
Copy link
I got a fix as bellow in /ldtp/client.py: add 196-200 line.
I am not sure it's a good solution, just report here, if anyone else got same issues, just try this fix.

196             except httplib.CannotSendRequest:
197                 if hasattr(self, 'close'):
198                     self.close()
199             except httplib.ResponseNotReady:
200                 pass
201             except xmlrpclib.Fault as e:
202                 if hasattr(self, 'close'):
203                     self.close()
204                 if e.faultCode == ERROR_CODE:
205                     raise LdtpExecutionError(e.faultString.encode('utf-8'))
206                 else:
207                     raise e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant