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

Query of Notary needs a timeout #2

Closed
von opened this issue Jul 14, 2011 · 1 comment
Closed

Query of Notary needs a timeout #2

von opened this issue Jul 14, 2011 · 1 comment

Comments

@von
Copy link
Owner

von commented Jul 14, 2011

Copy of von/PerProxy#7

Current it will just hang if Notary does not respond.

Querying Notary at cmu.ron.lcs.mit.edu port 8080 about encrypted.google.com:443,2...

What's a reasonable default timeout? 1 second?

@von von closed this as completed in 67651e1 Jul 15, 2011
@von
Copy link
Owner Author

von commented Jul 15, 2011

The issue here was that asyncore.loop() has no functionality to do a total timeout on the loop. The 'timeout' parameter is only for each individual call to select() and the 'count' parameter does put a bound on the number of calls to select, but that's not deterministic. So I created timed_asyncore.loop_with_timeout() which treats 'timeout' as a total maximum time the loop should run.

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