#919: CherryPy crashes if socket.accept() does not return a remote address
------------------------+---------------------------------------------------
Reporter: gwatts | Owner: fumanchu
Type: defect | Status: new
Priority: high | Milestone:
Component: wsgiserver | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Old description:
> I've come across some situations, on OS X, where socket.accept() does not
> return the remote peer's ip address. The actual accept() system call
> actually returns a zero length address. This seems to be a legitimate
> condition (though i've no idea what really leads to it).
>
> Apache just logs :: for the address in this situation, but CherryPy
> crashes in wsgiserver/__init__.py in tick()
>
> Suggest adding a couple of lines after socket.accept() in tick() such as
> if addr is None:
> addr = ('::', '0')
New description:
I've come across some situations, on OS X, where socket.accept() does not
return the remote peer's ip address. The actual accept() system call
actually returns a zero length address. This seems to be a legitimate
condition (though i've no idea what really leads to it).
Apache just logs :: for the address in this situation, but CherryPy
crashes in wsgiserver/__init__.py in tick()
Suggest adding a couple of lines after socket.accept() in tick() such as
{{{
if addr is None:
addr = ('::', '0')
}}}
--
Ticket URL: <
http://www.cherrypy.org/ticket/919>
CherryPy <
http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework