<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/SocketServer.py, branch v2.1c2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/SocketServer.py?h=v2.1c2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/SocketServer.py?h=v2.1c2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-04-11T04:02:05Z</updated>
<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>
<entry>
<title>In class StreamRequestHandler, make the default buffering for rfile</title>
<updated>2000-09-01T03:25:14Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-09-01T03:25:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=01fed4d4e6a2d5f4ff85236bb3430cdfef5e4ada'/>
<id>urn:sha1:01fed4d4e6a2d5f4ff85236bb3430cdfef5e4ada</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Add class variable allow_reuse_address in TCPServer -- if nonzero, the</title>
<updated>2000-05-09T14:53:29Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-05-09T14:53:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e3c7a5fbf5b737666a3e1f58f0677ec93e4de032'/>
<id>urn:sha1:e3c7a5fbf5b737666a3e1f58f0677ec93e4de032</id>
<content type='text'>
server_bind() method calls setsockopt(SOL_SOCKET, SO_REUSEADDR, 1).
</content>
</entry>
<entry>
<title>update to use threading module instead of thread.</title>
<updated>1999-10-12T16:20:13Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>1999-10-12T16:20:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=75260275fe3bcc5d177a1b3ff30fd60681809585'/>
<id>urn:sha1:75260275fe3bcc5d177a1b3ff30fd60681809585</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Another patch from Andy Dustman:</title>
<updated>1999-07-28T21:39:28Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1999-07-28T21:39:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2ab455a8fa946cb8d599018c2f861f1fe909c545'/>
<id>urn:sha1:2ab455a8fa946cb8d599018c2f861f1fe909c545</id>
<content type='text'>
"""
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.)
</content>
</entry>
<entry>
<title>In collect_children(), put a try-except around os.waitpid() because it</title>
<updated>1999-06-17T15:41:33Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1999-06-17T15:41:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bfadac00ef54264ef74313a7f6b527a946b62670'/>
<id>urn:sha1:bfadac00ef54264ef74313a7f6b527a946b62670</id>
<content type='text'>
may raise an exception (when there are no children).  Reported by
Andy Dustman.
</content>
</entry>
</feed>
