[Patches] [ python-Patches-946207 ] Non-blocking Socket Server

SourceForge.net noreply at sourceforge.net
Sat May 1 22:45:23 EDT 2004


Patches item #946207, was opened at 2004-05-01 19:45
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=946207&group_id=5470

Category: Modules
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Jesper ´JJ´ Jurcenoks (jesperjurcenoks)
Assigned to: Nobody/Anonymous (nobody)
Summary: Non-blocking Socket Server

Initial Comment:
Changed the included Python 2.3.3 SocketServer.py 
to be non-blocking.

I have made a web-server on BaseHTTPServer, but the 
server could get shot down externally by sending 
malformed request. Making it very Easy to Perform a 
Denial of Service.

The problem also exists in "Module Docs" web-server

To experience problem run Module Docs, and verify that 
web-server is working

telnet to webserver (telnet 127.0.0.1 7464#)
type "GET /\r"

access any web-page on web-server and notice how it 
is hung.

Replace existing SocketServer.py with included 
SocketServer.py and re-test noticing that the problem 
is gone.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=946207&group_id=5470



More information about the Patches mailing list