- 25 Nis, 2010 1 kayıt (commit)
-
-
Antoine Pitrou yazdı
where the method could block indefinitely if called just before the event loop started running. This also fixes the occasional freezes witnessed in test_httpservers.
-
- 07 Tem, 2009 1 kayıt (commit)
-
-
Kristján Valur Jónsson yazdı
added the shutdown_request() which can perform shutdown before calling close. This is needed for the ForkingMixIn because different close semantics are required for child and parent process. shutdown_request(), for TCP servers, calls socket.shutdown() and then calls close_request(). Therefore, this is not an backwards incompatible change, since subclasses that continue to override close_request() continue to work.
-
- 05 Tem, 2009 1 kayıt (commit)
-
-
Kristján Valur Jónsson yazdı
close_request() (which can send a socket.shutdown()) must be called by the child process in a forking server. The parent must merely close the socket handle.
-
- 03 Tem, 2009 1 kayıt (commit)
-
-
Kristján Valur Jónsson yazdı
some platforms may raise ENOTCONN if the stack has disconnected the socket on behalf of the peer.
-
- 28 Haz, 2009 1 kayıt (commit)
-
-
Kristján Valur Jónsson yazdı
Cumulative patch to http and xmlrpc
-
- 24 Haz, 2009 1 kayıt (commit)
-
-
Kristján Valur Jónsson yazdı
Move the newly introduced disable_nagle_algorithm flag into the StreamRequestHandler, where it is more appropriate.
-
- 07 Haz, 2009 1 kayıt (commit)
-
-
Kristján Valur Jónsson yazdı
Add a feature to disable the Nagle algorithm on sockets in TCPServer
-
- 24 Şub, 2009 1 kayıt (commit)
-
-
Neil Schemenauer yazdı
-
- 24 May, 2008 2 kayıt (commit)
-
-
Georg Brandl yazdı
place and fix all references to it. Closes #2926.
-
Georg Brandl yazdı
I'm doing this case-only rename in a two-step process via a different directory to hopefully avoid problems with case-insensitive filesystems.
-
- 12 May, 2008 1 kayıt (commit)
-
-
Alexandre Vassalotti yazdı
Deprecated old name.
-
- 07 Mar, 2008 1 kayıt (commit)
-
-
Jeffrey Yasskin yazdı
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.
-
- 28 Şub, 2008 1 kayıt (commit)
-
-
Jeffrey Yasskin yazdı
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.
-
- 14 Şub, 2008 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
when trying to remove a pid that in not in the activechildren list.
-
- 19 Ock, 2008 1 kayıt (commit)
-
-
Andrew M. Kuchling yazdı
.handle_timeout() method when no requests are received within the timeout period.
-
- 12 Mar, 2007 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 10 Mar, 2007 2 kayıt (commit)
-
-
Collin Winter yazdı
Patch #1599845: Add an option to disable the implicit calls to server_bind() and server_activate() in the constructors for TCPServer, SimpleXMLRPCServer and DocXMLRPCServer.
-
Collin Winter yazdı
Bug #1531963: Make SocketServer.TCPServer's server_address always be equal to calling getsockname() on the server's socket. Will backport.
-
- 18 Tem, 2005 1 kayıt (commit)
-
-
Georg Brandl yazdı
-
- 30 Nis, 2005 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 31 Ara, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 09 Eki, 2003 2 kayıt (commit)
-
-
Barry Warsaw yazdı
-
Barry Warsaw yazdı
Backport candidate.
-
- 02 Ock, 2003 1 kayıt (commit)
-
-
Anthony Baxter yazdı
robust. This makes socketserver's close() method callable repeatedly without error - similar to other file-like objects.
-
- 22 Kas, 2002 2 kayıt (commit)
-
-
Fred Drake yazdı
-
Martin v. Löwis yazdı
-
- 25 Agu, 2002 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 15 Nis, 2002 1 kayıt (commit)
-
-
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 :-).
-
- 04 Nis, 2002 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 23 Eki, 2001 1 kayıt (commit)
-
-
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.)
-
- 18 Eki, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Solved with a helper method that calls finish_request() and then close_request(). The code is by Max Neunhöffer.
-
- 03 Eki, 2001 1 kayıt (commit)
-
-
Skip Montanaro yazdı
loss for no reason.
-
- 24 Tem, 2001 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 10 Tem, 2001 1 kayıt (commit)
-
-
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).
-
- 11 Nis, 2001 1 kayıt (commit)
-
-
Ka-Ping Yee yazdı
can close the request connection when it's done handling it.
-
- 20 Ock, 2001 1 kayıt (commit)
-
-
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.
-
- 19 Ock, 2001 2 kayıt (commit)
-
-
Guido van Rossum yazdı
-
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.
-
- 13 Ara, 2000 1 kayıt (commit)
-
-
Moshe Zadka yazdı
-
- 01 Eyl, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
and wfile class variables (that the instance can also override). Change the default for rfile to buffered, because that seems to make a big difference in performance on some platforms. An anti-patch is needed to revert the effect in CGIHTTPServer.py which I'll check in momentarily.
-