Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Ticket #764 (defect)

Opened 7 months ago

Last modified 6 months ago

CherryPyWSGIServer times out under Windows and Python 2.5

Status: new

Reported by: guest Assigned to: rdelon
Priority: normal Milestone:
Component: wsgiserver Keywords:
Cc:

The behavior of a socket's readline() method (in a threaded environment??), when running under Windows appears to have changed between Python 2.4.4 and Python 2.5 (and 2.5.1).

The initial readline() in parse_request() will wait for its timeout in a second or subsequent call from communicate()'s loop. No more connection requests are honored until after the timeout. The default timeout is 10 seconds, resulting in very slow serving of stylesheets and images! Setting the timeout to a small value (eg. 0.1 second) results in lost requests.

Python 2.4.4 under Windows is fine - the readline() timeouts still happen, but only after all connections have been accepted and processed. And Python 2.5.1 under OS/X is fine.

Am not sure as to the best way forward. To reproduce the behavior in a small test program? And/or to try non-blocking socket reads (using select())?? Or revert back to 2.4.4 ??

Thanks,

Dave B

Change History

01/12/08 19:30:33: Modified by fumanchu

A small test program would certainly help nail this down.

Hosted by WebFaction

Log in as guest/cpguest to create tickets