Neil Schemenauer
c9332fada6
Fix call to os.waitpid, it does not take keyword args.
2009-02-24 04:23:25 +00:00
Georg Brandl
e152a77d96
socketserver renaming reversal part 3: move the module into the right
...
place and fix all references to it. Closes #2926 .
2008-05-24 18:31:28 +00:00
Alexandre Vassalotti
fb9ce65a91
Renamed SocketServer to 'socketserver'.
...
Deprecated old name.
2008-05-12 01:37:10 +00:00
Jeffrey Yasskin
e75f59a578
Progress on issue #1193577 by adding a polling .shutdown() method to
...
SocketServers. The core of the patch was written by Pedro Werneck, but any bugs
are mine. I've also rearranged the code for timeouts in order to avoid
interfering with the shutdown poll.
2008-03-07 06:22:15 +00:00
Jeffrey Yasskin
392c159ad6
Prevent SocketServer.ForkingMixIn from waiting on child processes that it
...
didn't create, in most cases. When there are max_children handlers running, it
will still wait for any child process, not just handler processes.
2008-02-28 18:03:15 +00:00
Raymond Hettinger
1b5632445b
Add diagnostic message to help figure-out why SocketServer tests occasionally crash
...
when trying to remove a pid that in not in the activechildren list.
2008-02-14 09:32:45 +00:00
Andrew M. Kuchling
e45a77adbe
Patch #742598 from Michael Pomraning: add .timeout attribute to SocketServer that will call
...
.handle_timeout() method when no requests are received within the timeout period.
2008-01-19 16:26:13 +00:00
Tim Peters
ea5962f86e
Whitespace normalization.
2007-03-12 18:07:52 +00:00
Collin Winter
ae04106a0e
Patch #1599845 : Add an option to disable the implicit calls to server_bind() and server_activate() in the constructors for TCPServer, SimpleXMLRPCServer and DocXMLRPCServer.
2007-03-10 14:41:48 +00:00
Collin Winter
22c42ba88c
Bug #1531963 : Make SocketServer.TCPServer's server_address always be equal to calling getsockname() on the server's socket.
...
Will backport.
2007-03-10 02:51:26 +00:00
Georg Brandl
ca5feabac2
bug [ 957505 ] SocketServer module documentation misleading
2005-07-18 07:38:44 +00:00
Guido van Rossum
ebbffd42f3
Fixed a typo in docstring I happened upon.
2005-04-30 00:20:35 +00:00
Raymond Hettinger
a617271dbd
Use cStringIO where available.
2004-12-31 19:15:26 +00:00
Barry Warsaw
b97f0b7654
TCPServer: Fixed typo in class docstring.
2003-10-09 23:48:52 +00:00
Barry Warsaw
3aaad5079b
TCPServer: Fixed typo in class docstring.
...
Backport candidate.
2003-10-09 22:44:05 +00:00
Anthony Baxter
4cedc1e84e
Clearing out old patch queue. Patch #558547 , make SocketServer more
...
robust. This makes socketserver's close() method callable repeatedly
without error - similar to other file-like objects.
2003-01-02 03:07:48 +00:00
Fred Drake
132e0e824b
Use False instead of 0.
2002-11-22 14:22:49 +00:00
Martin v. Löwis
f86e8ef33e
Patch #550765 : Add daemon_threads flag.
2002-11-22 08:08:44 +00:00
Raymond Hettinger
c8f8034512
Replace 0 with False to match working in documentation. SF 599681.
2002-08-25 16:36:49 +00:00
Guido van Rossum
beae477767
SF bug #543318 (Frank J. Tobin).
...
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 :-).
2002-04-15 00:36:48 +00:00
Tim Peters
bc0e910826
Convert a pile of obvious "yes/no" functions to return bool.
2002-04-04 22:55:58 +00:00
Guido van Rossum
83c3281826
Apply the first chunk of the second patch from SF bug #471720 :
...
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.)
2001-10-23 21:42:45 +00:00
Guido van Rossum
a5343ccd28
SF bug #471720 : ThreadingMixIn/TCPServer forgets close
...
Solved with a helper method that calls finish_request() and then
close_request(). The code is by Max Neunhöffer.
2001-10-18 18:02:07 +00:00
Skip Montanaro
ae3b1258e4
remove empty __del__ method from BaseRequestHandler to avoid cyclic garbage
...
loss for no reason.
2001-10-03 12:21:23 +00:00
Martin v. Löwis
a43c2f845e
Patch #401196 : Use getaddrinfo and AF_INET6 in TCP servers and clients.
2001-07-24 20:34:08 +00:00