<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/SocketServer.py, branch v2.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/SocketServer.py?h=v2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/SocketServer.py?h=v2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-10-23T21:42:45Z</updated>
<entry>
<title>Apply the first chunk of the second patch from SF bug #471720:</title>
<updated>2001-10-23T21:42:45Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-10-23T21:42:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=83c3281826316e2a1c1e9b682c5d303be5df79f4'/>
<id>urn:sha1:83c3281826316e2a1c1e9b682c5d303be5df79f4</id>
<content type='text'>
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.)
</content>
</entry>
<entry>
<title>SF bug #471720: ThreadingMixIn/TCPServer forgets close</title>
<updated>2001-10-18T18:02:07Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-10-18T18:02:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a5343ccd28245d96feb21d1457802b97a76aa210'/>
<id>urn:sha1:a5343ccd28245d96feb21d1457802b97a76aa210</id>
<content type='text'>
Solved with a helper method that calls finish_request() and then
close_request().  The code is by Max Neunhöffer.
</content>
</entry>
<entry>
<title>remove empty __del__ method from BaseRequestHandler to avoid cyclic garbage</title>
<updated>2001-10-03T12:21:23Z</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2001-10-03T12:21:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ae3b1258e48281fd44f48a0a93ff582ae57f6c70'/>
<id>urn:sha1:ae3b1258e48281fd44f48a0a93ff582ae57f6c70</id>
<content type='text'>
loss for no reason.
</content>
</entry>
<entry>
<title>Patch #401196: Use getaddrinfo and AF_INET6 in TCP servers and clients.</title>
<updated>2001-07-24T20:34:08Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2001-07-24T20:34:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a43c2f845e59b833b17e45994cd81c631c071236'/>
<id>urn:sha1:a43c2f845e59b833b17e45994cd81c631c071236</id>
<content type='text'>
</content>
</entry>
<entry>
<title>IMPORTANT FIX: This should definitely go into the 2.1.1 release!!!</title>
<updated>2001-07-10T11:50:09Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-07-10T11:50:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7de4d645a5e268d202409b35d797b3db09eec476'/>
<id>urn:sha1:7de4d645a5e268d202409b35d797b3db09eec476</id>
<content type='text'>
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).
</content>
</entry>
<entry>
<title>Add a close_request method to the BaseServer so that the TCPServer class</title>
<updated>2001-04-11T04:02:05Z</updated>
<author>
<name>Ka-Ping Yee</name>
<email>ping@zesty.ca</email>
</author>
<published>2001-04-11T04:02:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=285a7e59f308613945ced43889fe12eb993af838'/>
<id>urn:sha1:285a7e59f308613945ced43889fe12eb993af838</id>
<content type='text'>
can close the request connection when it's done handling it.
</content>
</entry>
<entry>
<title>added __all__ lists to a number of Python modules</title>
<updated>2001-01-20T19:54:20Z</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2001-01-20T19:54:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e99d5ea25ba994491c773d9b5872332334ccd1c5'/>
<id>urn:sha1:e99d5ea25ba994491c773d9b5872332334ccd1c5</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Bump __version__; add authorship note for the BaseServer patch.</title>
<updated>2001-01-19T16:45:46Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-01-19T16:45:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=10b04180a09e905eea066d80f4b32da35dc20ba7'/>
<id>urn:sha1:10b04180a09e905eea066d80f4b32da35dc20ba7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF Patch #102980, by Luke Kenneth Casson Leighton: BaseServer class</title>
<updated>2001-01-19T00:44:41Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-01-19T00:44:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=90cb9067b82509ed4917084ffa85abc150509ff5'/>
<id>urn:sha1:90cb9067b82509ed4917084ffa85abc150509ff5</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Changing allow_reuse_address's default value, and documenting it.</title>
<updated>2000-12-13T20:39:22Z</updated>
<author>
<name>Moshe Zadka</name>
<email>moshez@math.huji.ac.il</email>
</author>
<published>2000-12-13T20:39:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dd802208a739b96b7dea0d9533e34f6410b843ce'/>
<id>urn:sha1:dd802208a739b96b7dea0d9533e34f6410b843ce</id>
<content type='text'>
</content>
</entry>
</feed>
