cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_easy_perform() wouldn't return after receiving all the data

From: Goden Wang <godenwang_at_gmail.com>
Date: Tue, 8 Dec 2009 17:11:43 +0800

> Message: 9
> Date: Wed, 2 Dec 2009 09:44:25 +0800
> From: Goden Wang <godenwang_at_gmail.com>
> To: curl-library_at_cool.haxx.se
> Subject: curl_easy_perform() wouldn't return after receiving all the
> data
> Message-ID:
> <402359830912011744l35875c17oc72e572d3b933e94_at_mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi fellows,
>
> I got some problems, curlTest.tar is a simpe reproduce code for the
> problem.
>
> As I know now, the problem can be described as "curl_easy_perform()
> wouldn't
> return after receiving all the data".
>
> I have found some information in the mailing list, but all the discussion
> didn't help me on this problem.
>
> in the code, I called curl_easy_perform() twice, the first time , it worked
> well, and the next , it stops without return. see details in the curlTest
> code.
>
> reproduce the problem quickly in the following way:
>
> tar -xvvf curlTest.tar
> cd curlTest
> make httppost
> ./bin/httppost
>
> I was working on a network program and want to free it on sourceforge for I
> didn't found any software alike.
>
> you can see the TCP packet streams with wireshark in file
> curl_wouldn't_return_538.cap, set the filter to
>
> ip.addr == 61.148.212.37
> to filter other nonsence packets, in packet No 538, you can see the HTTP
> 200
> OK is back to curl, but the curl didn't return,
>
> Thanks for any tips you offered.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://cool.haxx.se/pipermail/curl-library/attachments/20091202/6b39ea33/attachment.htm
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: curlTest.tar
> Type: application/x-tar
> Size: 481280 bytes
> Desc: not available
> URL: <
> http://cool.haxx.se/pipermail/curl-library/attachments/20091202/6b39ea33/attachment.tar
> >
>
> ------------------------------
>
> _______________________________________________
> curl-library mailing list
> curl-library_at_cool.haxx.se
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-library
>
>
> End of curl-library Digest, Vol 52, Issue 4
> *******************************************
>

Is there any one who can help me on this problem, the demo code attached in
the mail could fully reproduce the problem.

I am really sad for didn't receive any response for more than 6 days.

the problem I have envloved is nearlly stop.

I have attached two files including the demo code and the packtes streams in
the attachement, but the mail failed to send for the attachment is
too big, you can got your own packet streams in wireshark and set the filter
to ip.addr== 61.148.212.37.

anyone, really appreciate your help, Thanks.....

BR.....

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-08