1. 10 Jul, 2001 2 commits
    • Guido van Rossum's avatar
      A test suite for SocketServer.py that exposes the various bugs just · 39f1b365
      Guido van Rossum authored
      fixed.  Regrettably, this must be run manually -- somehow the I/O
      redirection of the regression test breaks the test.  When run under
      the regression test, this raises ImportError with a warning to that
      effect.
      
      Bugfix candidate!
      39f1b365
    • Guido van Rossum's avatar
      IMPORTANT FIX: This should definitely go into the 2.1.1 release!!! · 7de4d645
      Guido van Rossum authored
      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).
      7de4d645
  2. 09 Jul, 2001 6 commits
  3. 08 Jul, 2001 2 commits
  4. 07 Jul, 2001 1 commit
  5. 06 Jul, 2001 26 commits
  6. 05 Jul, 2001 3 commits