wget has a 4 second delay

Posted by guisius on Ask Ubuntu See other posts from Ask Ubuntu or by guisius
Published on 2011-03-04T03:48:42Z Indexed on 2011/03/05 7:32 UTC
Read the original article Hit count: 271

Filed under:
|

Hello.

I have tried to wget a page with windows/mac, and the response is instant while the linux vesion needs to wait for 4 seconds before it shows the response.

I just hope this can be solved.

More information added:

in Ubuntu :

wget xxx://192.168.0.135/test.cgi?cmd= -O test.txt
--2011-03-04 14:21:17--  xxx://192.168.0.135/test.cgi?cmd=
Connecting to 192.168.0.135:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `test.txt'

[ <=>                                   ] 17          --.-K/s   in 0s      

2011-03-04 14:21:22 (1.88 MB/s) - `test.txt' saved [17]

while in Mac OS :

wget xxx://192.168.0.135/test.cgi?cmd= -O test.txt
--2011-03-04 14:22:33--  xxx://192.168.0.135/test.cgi?cmd=
Connecting to 192.168.0.135:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `test.txt'

[ <=>                                   ] 17          --.-K/s   in 0s      

2011-03-04 14:22:33 (755 KB/s) - `test.txt' saved [17]

in ubuntu it delays 4 seconds while windows and mac will not

i believe it may related to some setting in the network config such as packet size , window frame , but i have no idea to set this

PS: because the limit of the post not allow to post the url so i mark this as xxx

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about wget