Re: LibCurl Hang when download job disturbed by network interface down

2010-07-15 Thread 宝朱
Hi Dan, It seems ok when I use LOW_SPEED_LIMIT and LOW_SPEED_TIME. If the speed is too slow, there will be a exception. Thank you very much. Br, bazohong 2010/7/14 Dan Fandrich d...@coneharvesters.com On Wed, Jul 14, 2010 at 03:56:19PM +0800, ±¦Öì wrote: In the clinet, I use netstat -an and

Re: LibCurl Hang when download job disturbed by network interface down

2010-07-14 Thread 宝朱
When interface comes back, it will always use the previous address. But the transfer does not resume more than one day.(One day is my longest test period). I have used the CONNECTTIMEOUT and FTP_RESPONSE_TIMEOUT option. 2010/7/14 Dan Fandrich d...@coneharvesters.com On Wed, Jul 14, 2010 at

Re: LibCurl Hang when download job disturbed by network interface down

2010-07-14 Thread Dan Fandrich
On Wed, Jul 14, 2010 at 02:26:55PM +0800, ±¦Öì wrote: When interface comes back, it will always use the previous address. But the transfer does not resume more than one day.(One day is my longest test period).   I have used the CONNECTTIMEOUT and FTP_RESPONSE_TIMEOUT option. I don't know

Re: LibCurl Hang when download job disturbed by network interface down

2010-07-14 Thread 宝朱
In the clinet, I use netstat -an and found the tcp connection is still established. 2010/7/14 Dan Fandrich d...@coneharvesters.com On Wed, Jul 14, 2010 at 02:26:55PM +0800, ±¦Öì wrote: When interface comes back, it will always use the previous address. But the transfer does not resume more

Re: LibCurl Hang when download job disturbed by network interface down

2010-07-14 Thread Dan Fandrich
On Wed, Jul 14, 2010 at 03:56:19PM +0800, ±¦Öì wrote: In the clinet, I use netstat -an and found the tcp connection is still established. Which is what you'd see if the client lost the RST while the network was down. Either of the LOW_SPEED or keepalive methods I suggested would detect this.

RE: LibCurl Hang when download job disturbed by network interface down

2010-07-13 Thread Xu, Qiang (FXSGSC)
-Original Message- From: curl-library-boun...@cool.haxx.se [mailto:curl-library-boun...@cool.haxx.se] On Behalf Of Dan Fandrich Sent: Wednesday, July 14, 2010 12:41 PM To: curl-library@cool.haxx.se Subject: Re: LibCurl Hang when download job disturbed by network interface down

Re: LibCurl Hang when download job disturbed by network interface down

2010-07-13 Thread 宝朱
PM To: curl-library@cool.haxx.se Subject: Re: LibCurl Hang when download job disturbed by network interface down If the network interface comes back up with a new address, then the existing connection will no longer be able to continue and it will eventually time out (which could take