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 terry.reedy
Recipients othererik, santoso.wijaya, terry.reedy
Date 2010-08-05.20:25:45
SpamBayes Score 0.00827082
Marked as misclassified No
Message-id <>
The behavior is as documented, so this is a feature request.
The 3.1.2 doc in 20.19.2. Server Objects says
Tells the serve_forever() loop to stop and waits until it does."

I presume this allows subsequent .handle_request() and ..serve_forever() calls, as well as others, so I think the request is a bad idea.

For automatic closing, use 'with' statements and a context manager and checkout contextlib. This is their main purpose.

I am not sure what
"The server classes support the following class variables:
Whether the server will allow the reuse of an address. This defaults to False, and can be set in subclasses to change the policy." 
or whether it would help you.
Date User Action Args
2010-08-05 20:25:49terry.reedysetrecipients: + terry.reedy, santoso.wijaya, othererik
2010-08-05 20:25:49terry.reedysetmessageid: <>
2010-08-05 20:25:47terry.reedylinkissue8506 messages
2010-08-05 20:25:45terry.reedycreate