Skip to content
This repository was archived by the owner on Jun 23, 2020. It is now read-only.

Add timeout to all join requests on the thread#4

Merged
bderusha merged 1 commit intomasterfrom
bderusha/join-timeout
Jan 11, 2018
Merged

Add timeout to all join requests on the thread#4
bderusha merged 1 commit intomasterfrom
bderusha/join-timeout

Conversation

@bderusha
Copy link
Copy Markdown

It seems that when you call join without passing a timeout gevent creates a mock timer interface https://github.com/gevent/gevent/blob/master/src/gevent/timeout.py#L24 that never expires. I have a hunch that if join is our problem this will resolve it.

Note the docstring for the method: """Ends the consumer thread once the queue is empty. Blocks execution until finished""" we need to put a timeout on it if it's blocking.

@bderusha bderusha requested a review from mjfrey January 10, 2018 22:07
Copy link
Copy Markdown

@mjfrey mjfrey left a comment

Choose a reason for hiding this comment

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

Let’s try it.

@bderusha bderusha merged commit 43480c1 into master Jan 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants