Thread join may block forever
See original GitHub issueCalling join on a thread may block the call forever when remaining_time is negative. And this can prevent cheroot from stopping properly.
One fix would be to change this line to be:
remaining_time = timeout and min(0, endtime - time.time())
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
std::thread::join blocks indefinitely out of main - Stack Overflow
It is a global variable. If A::join is called from the destructor, std::thread::join blocks forever.
Read more >Thread.Join Method (System.Threading) - Microsoft Learn
Use this method to ensure that a thread has been terminated. The caller will block indefinitely if the thread does not terminate. In...
Read more >The Thread.join() Method in Java - Baeldung
join () Methods with Timeout. The join() method will keep waiting if the referenced thread is blocked or takes too long to process....
Read more >What is the Thread.join() method in Java? - Educative.io
The Thread.join() method is a blocking call. This means that it will cause the thread that calls it to stop executing until the...
Read more >Java Thread Join Example | DigitalOcean
Java Thread join method can be used to pause the current thread execution until unless the specified thread is dead.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I don’t have any more time to commit to this but I’ve applied the fix I recommended above in my fork and it’s working well for me.
Ah, I missed that it’s in a loop and only checked how it’s set at the beginning of the module. @scyclops do you think you could come up with a pytest-based reproducer?