Ticket #974 defect closed fixed

Opened 8 years ago

Last modified 8 years ago

twisted.web.client.getPage never completes files >3.1MB (Windows)

Reported by: moonfallen Owned by: moonfallen
Priority: high Milestone:
Component: Keywords:
Cc: moonfallen, exarkun, dp, jknight Branch:
Author: Launchpad Bug:

Description


Attachments

httpgetter-getpage.py Download (0.5 KB) - added by moonfallen 8 years ago.
httpsender.tac Download (392 bytes) - added by moonfallen 8 years ago.

Change History

1

Changed 8 years ago by moonfallen

On Linux, getPage demonstrates O(n^2) performance.  On my Windows laptop,
however, it just breaks when > 3.1MB.

First attached file is some client code to demonstrate.
Second attached file will be a trivial server .tac, feel free to supply your own.

Run the client as "python httpgetter-getpage.py http://localhost:8080/bigfile"

(nosy jknight just for relatedness)

Changed 8 years ago by moonfallen

Changed 8 years ago by moonfallen

2

Changed 8 years ago by moonfallen

the server tac

3

Changed 8 years ago by moonfallen

Updated title, since this only happens windowsish.

4

Changed 8 years ago by exarkun

Performance is O(N) on Linux now.  Should be improved on Windows too.  Please
test and re-open if this is not the case.
Note: See TracTickets for help on using tickets.