Opened 10 years ago

Last modified 10 years ago

#974 defect closed fixed (fixed)

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 (2)

httpgetter-getpage.py (552 bytes) - added by moonfallen 10 years ago.
httpsender.tac (392 bytes) - added by moonfallen 10 years ago.

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by moonfallen

comment:1 Changed 10 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 10 years ago by moonfallen

comment:2 Changed 10 years ago by moonfallen

the server tac

comment:3 Changed 10 years ago by moonfallen

Updated title, since this only happens windowsish.

comment:4 Changed 10 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.