1. 09 Eki, 2003 2 kayıt (commit)
  2. 02 Ock, 2003 1 kayıt (commit)
  3. 22 Kas, 2002 2 kayıt (commit)
  4. 25 Agu, 2002 1 kayıt (commit)
  5. 15 Nis, 2002 1 kayıt (commit)
    • Guido van Rossum's avatar
      SF bug #543318 (Frank J. Tobin). · beae4777
      Guido van Rossum yazdı
      In DatagramRequestHandler.setup(), the wfile initialization should be
      StringIO.StringIO(), not StringIO.StringIO(slf.packet).
      
      Bugfix candidate (all the way back to Python 1.5.2 :-).
      beae4777
  6. 04 Nis, 2002 1 kayıt (commit)
  7. 23 Eki, 2001 1 kayıt (commit)
    • Guido van Rossum's avatar
      Apply the first chunk of the second patch from SF bug #471720: · 83c32818
      Guido van Rossum yazdı
      ThreadingMixIn/TCPServer forgets close (Max Neunhöffer).
      
      This ensures that handle_error() and close_request() are called when
      an error occurs in the thread.
      
      (I am not applying the second chunk of the patch, which moved the
      finish() call into the finally clause in BaseRequestHandler's __init__
      method; that would be a semantic change that I cannot accept at this
      point - the data would be sent even if the handler raised an
      exception.)
      83c32818
  8. 18 Eki, 2001 1 kayıt (commit)
  9. 03 Eki, 2001 1 kayıt (commit)
  10. 24 Tem, 2001 1 kayıt (commit)
  11. 10 Tem, 2001 1 kayıt (commit)
    • Guido van Rossum's avatar
      IMPORTANT FIX: This should definitely go into the 2.1.1 release!!! · 7de4d645
      Guido van Rossum yazdı
      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
  12. 11 Nis, 2001 1 kayıt (commit)
  13. 20 Ock, 2001 1 kayıt (commit)
    • Skip Montanaro's avatar
      added __all__ lists to a number of Python modules · e99d5ea2
      Skip Montanaro yazdı
      added test script and expected output file as well
      this closes patch 103297.
      __all__ attributes will be added to other modules without first submitting
      a patch, just adding the necessary line to the test script to verify
      more-or-less correct implementation.
      e99d5ea2
  14. 19 Ock, 2001 2 kayıt (commit)
    • Guido van Rossum's avatar
    • Guido van Rossum's avatar
      SF Patch #102980, by Luke Kenneth Casson Leighton: BaseServer class · 90cb9067
      Guido van Rossum yazdı
      for SocketServer.py (inherited by TCPServer)
      
      Luke wrote:
      
        The socketserver code, with a little bit of tweaking, can be made
        sufficiently general to service "requests" of any kind, not just by sockets.
        The BaseServer class was created, for example, to poll a table in a MYSQL
        database every 2 seconds. each entry in the table can be allocated a
        Handler which deals with the entry.
      
        With this patch, using BaseServer and ThreadedServer classes, the creation
        of the server that reads and handles MySQL table entries instead of a
        socket was utterly trivial: about 50 lines of python code.
      
        You may consider this code to be utterly useless [why would anyone else
        want to do anything like this???] - you are entitled to your opinion. if you
        think so, then think of this: have you considered how to cleanly add SSL to
        the TCPSocketServer? What about using shared memory as the
        communications mechanism for a server, instead of sockets? What about
        communication using files?
      
        The SocketServer code is extremely good every useful. it's just that as it
        stands, it is tied to sockets, which is not as useful.
      
      I heartily approve of this idea.
      90cb9067
  15. 13 Ara, 2000 1 kayıt (commit)
  16. 01 Eyl, 2000 1 kayıt (commit)
  17. 09 May, 2000 1 kayıt (commit)
  18. 12 Eki, 1999 1 kayıt (commit)
  19. 28 Tem, 1999 1 kayıt (commit)
    • Guido van Rossum's avatar
      Another patch from Andy Dustman: · 2ab455a8
      Guido van Rossum yazdı
      """
      Here's a patch for the ForkingMixIn which will prevent the server from
      forking itself into the ground. Note: I've tested a very similar patch
      (subclassed ForkingMixIn) but not actually tested this one. As you might
      surmise, this was done out of necessity...
      
      If the maximum number of children are already running, block while waiting
      for a child to exit.
      """
      
      (I added that last sentence as a comment to the code --GvR.)
      2ab455a8
  20. 17 Haz, 1999 1 kayıt (commit)
  21. 15 Haz, 1999 1 kayıt (commit)
  22. 01 Haz, 1999 1 kayıt (commit)
  23. 21 May, 1999 1 kayıt (commit)
    • Guido van Rossum's avatar
      Andy Dustman writes: · 18659608
      Guido van Rossum yazdı
      I noticed while watching (with lsof) my forking SocketServer app running
      that I would get multiple processes listening to the socket. For the most
      part, this doesn't hurt things, but if you terminate the server, this can
      prevent it from restarting because it cannot bind to the port due to any
      running children which also have the socket open. The following one-liner
      fixes this.
      18659608
  24. 30 Kas, 1998 1 kayıt (commit)
  25. 16 Kas, 1998 1 kayıt (commit)
  26. 16 Haz, 1998 1 kayıt (commit)
  27. 03 Nis, 1998 1 kayıt (commit)
  28. 26 Mar, 1998 1 kayıt (commit)
  29. 29 Eyl, 1997 1 kayıt (commit)
  30. 16 Tem, 1997 1 kayıt (commit)
  31. 23 Eki, 1996 1 kayıt (commit)
  32. 14 Şub, 1996 1 kayıt (commit)
  33. 25 Ock, 1996 1 kayıt (commit)
  34. 04 Agu, 1995 1 kayıt (commit)