]> granicus.if.org Git - python/commit
IMPORTANT FIX: This should definitely go into the 2.1.1 release!!!
authorGuido van Rossum <guido@python.org>
Tue, 10 Jul 2001 11:50:09 +0000 (11:50 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 10 Jul 2001 11:50:09 +0000 (11:50 +0000)
commit7de4d645a5e268d202409b35d797b3db09eec476
tree542837756da4d187e361fe483ab1a9b410a7fa4a
parent06e415fe52796629dd1342bb02103b5a51fbcd9a
IMPORTANT FIX: This should definitely go into the 2.1.1 release!!!

Fix various serious problems:

- The ThreadingTCPServer class and its derived classes were completely
  broken because the main thread would close the request before the
  handler thread had time to look at it.  This was introduced by
  Ping's close_request() patch.  The fix moves the close_request()
  calls to after the handler has run to completion in the BaseServer
  class and the ForkingMixIn class; when using the ThreadingMixIn,
  closing the request is the handler's responsibility.

- The ForkingUDPServer class has always been been broken because the
  socket was closed in the child before calling the handler.  I fixed
  this by simply not calling server_close() in the child at all.

- I cannot get the UnixDatagramServer class to work at all.  The
  recvfrom() call doesn't return a meaningful client address.  I added
  a comment to this effect.  Maybe it works on other Unix versions.

- The __all__ variable was missing ThreadingMixIn and ForkingMixIn.

- Bumped __version__ to "0.4".

- Added a note about the test suite (to be checked in shortly).
Lib/SocketServer.py