|Do you know where your variables are?|
Re^3: LWP slow downloads on windowsby jbert (Priest)
|on Dec 03, 2008 at 21:41 UTC||Need Help??|
OK, can we get an idea what your windows box is up to during this 2 minutes?
Is the CPU busy at all (I assume it's not busy before you start the test)?
If the CPU is busy with another proc, that's your culprit. If the CPU is busy with your perl script, we can try CPU profiling with Devel::NYTProf or Devel::Profile, if (as is likely) your CPU is idle we can look at other causes:
Perhaps you could try:
Also, since we're in the realm of the unlikely here, maybe it is worth checking it's not the LWP version. LWP is pure-perl, so you should be able to copy the modules from one box to another and use that temp copy with 'perl -I /path/to/your/temp/copy'. Maybe you've found a regression.
A quick grep over the current LWP source shows lots of references to $^O, but nothing which seems relevant.
D'oh! I forgot the 1st rule of network delays: it's always DNS.
I'll wager one xp point that your windows boxes don't have reverse DNS, and your web server is (mis-)configured to log the host name of connecting systems. It sits there in DNS timeout before sending back the data.
If I'm right, you'll see no data at all during the timeout period, then the data shoot back in a short while. Can you 'dig -x 188.8.131.52' from your web server for the windows boxes and the unix boxes?