cURL / Mailing Lists / curl-library / Single Mail

curl-library

how to close curl socket properly?

From: Vincent Chen <silence.vincent_at_msa.hinet.net>
Date: Tue, 15 Sep 2009 15:38:05 +0800

Hi all,

If I am using curl_easy_perform() to downloading large files,
then client wants to cancel downloading, how sould I do to let socket close
properly?

I ever try to call curl_easy_reset() when user cancel downloading, but the
connection status kepp at FIN_WAIT_1.

thanks!
Received on 2009-09-15