curl-library
RE: how can i deal with the situation of network interruption while transfering data on FTP?
Date: Sun, 10 Jan 2010 12:34:25 +0800
great!!!
i have got solution. that is CURLOPT_LOW_SPEED_LIMIT and CURLOPT_LOW_SPEED_TIME.
From: cxzqw_at_hotmail.com
To: curl-library_at_cool.haxx.se
Subject: how can i deal with the situation of network interruption while transfering data on FTP?
Date: Sat, 9 Jan 2010 12:41:51 +0800
when i was sending data on an FTP link i pulled out the net cable from the server machine. the server immediatly disconnected and showed messages on screen. OS is XP.
the client, coded by c, using libcurl, under Ubuntu, was still waiting for the response. it didn't show any error information just still the "accepting XXX..." echo on console when i opened the verbose. it seemed to keep the link for very long time.
is there any idea that i can get a return value and can be checkecd to see if there are something happended on network just like server does?
i know if i manually kick the transfer connecting from client out and libcurl will return a value which is not CURLE_OK. all i want is the same effect just when network problems occurs.
sorry for my poor english.
thx for any help.
更多热辣资讯尽在新版MSN首页! 立刻访问!
_________________________________________________________________
SkyDrive电子画册,带你领略精彩照片,分享“美”时“美”刻!
http://www.windowslive.cn/campaigns/e-magazine/ngmchina/?a=c
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-01-10