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

Connection Timeouts #2

Closed
julester23 opened this issue Jan 24, 2013 · 2 comments
Closed

Connection Timeouts #2

julester23 opened this issue Jan 24, 2013 · 2 comments
Assignees

Comments

@julester23
Copy link

There ought to be a means of setting a connection timeout. I am using your txcosm library to upload datapoints, but would like it to be robust enough to handle intermittent internet connections. The reactor Agent takes a "connectTimeout" argument which could be helpful but doesn't handle cases in which the connection is established, but the request hangs. Perhaps you intend for people to schedule callLaters to cancel jobs?

@ghost ghost assigned claws Jan 27, 2013
claws added a commit that referenced this issue Jan 27, 2013
@claws
Copy link
Owner

claws commented Jan 27, 2013

I have made changes to the project to support request timeouts. There is now a small mention of it in the readme and there is a test_timeout.py in the tests directory that you can look at for how you would use the timeout value in your particular case.
If you get a chance to test it out let me know how you go.

@julester23
Copy link
Author

The timeout works well, nicely done. I don't have the necessary Twisted skills to add that feature myself, so I really appreciate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants