Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Bug 656505 - jsbridge will wait forever instead of timing out if a non-multiple of 0.25 is used. #95

Closed
wants to merge 2 commits into from
Closed

Bug 656505 - jsbridge will wait forever instead of timing out if a non-multiple of 0.25 is used. #95

wants to merge 2 commits into from

Conversation

xabolcs
Copy link
Contributor

@xabolcs xabolcs commented Aug 27, 2012

Patch for Bug 656505.

ttl = 0
while ttl < timeout:
deadline = datetime.now() + timedelta(seconds=timeout)
found_socket = False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name I have given for the variable was just an example. When looking at this function we do not search for the socket but trying to connect to the given port at the host. So 'connected' would be a much better name here.

Mind also adding a blank line before the while loop so we separate those blocks?

Otherwise looks good and I'm happy to get this checked in.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure!

- separated while loop
- "found_socket" -> "connected"
@xabolcs
Copy link
Contributor Author

xabolcs commented Aug 28, 2012

Commit 79f4df0 added with addressed comments.

@whimboo
Copy link
Contributor

whimboo commented Aug 28, 2012

8dd8b11

@whimboo whimboo closed this Aug 28, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants