Message150126
I'm seeing that shutdown does have a race condition just using BaseHTTPServer.HTTPServer. See the attached simple script. Then access http://localhost:8081. This is using both Python 2.6.6 (r266:84292, May 22 2011, 16:47:42) on Oracle Linux Server 6.1 and Python 2.7.2+ (default, Oct 4, 2011, 20:03:08) on Ubuntu 11.10. I have applied the socketserver.patch dated 2011-07-25 18:43, with the same result.
The problem is that shutdown() waits for the event, which is never triggered since there is no thread to set the event. I'll see if I can come up with a patch myself later this weekend. I suspect the same might happen with ForkingMixIn. |
|
Date |
User |
Action |
Args |
2011-12-23 01:40:17 | Arcege | set | recipients:
+ Arcege, pitrou, giampaolo.rodola, neologix, santoso.wijaya, socketpair, petri.lehtinen |
2011-12-23 01:40:16 | Arcege | set | messageid: <1324604416.88.0.643544303607.issue12463@psf.upfronthosting.co.za> |
2011-12-23 01:40:16 | Arcege | link | issue12463 messages |
2011-12-23 01:40:15 | Arcege | create | |
|