This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Arcege
Recipients Arcege, giampaolo.rodola, neologix, petri.lehtinen, pitrou, santoso.wijaya, socketpair
Date 2011-12-23.01:40:14
SpamBayes Score 2.4334718e-06
Marked as misclassified No
Message-id <1324604416.88.0.643544303607.issue12463@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-12-23 01:40:17Arcegesetrecipients: + Arcege, pitrou, giampaolo.rodola, neologix, santoso.wijaya, socketpair, petri.lehtinen
2011-12-23 01:40:16Arcegesetmessageid: <1324604416.88.0.643544303607.issue12463@psf.upfronthosting.co.za>
2011-12-23 01:40:16Arcegelinkissue12463 messages
2011-12-23 01:40:15Arcegecreate