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

SourceForge.net noreply at sourceforge.net
Tue Jul 13 21:21:52 CEST 2004


Patches item #946207, was opened at 2004-05-02 02:45
Message generated for change (Comment added) made by mmangino
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.



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

Comment By: Mike Mangino (mmangino)
Date: 2004-07-13 19:21

Message:
Logged In: YES 
user_id=74879

Can you post a diff for this to make it easier to understand
what has changed?

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

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