curl-library
RE: curl_easy vs curl_multi - performance
Date: Mon, 13 Jun 2011 16:26:28 -0700
AW>> Out of curiosity Paolo could you elaborate on the nature of the bug
It was a truly functional mistake on my side. I was not aware that the server was sending back stuff that, in turn, curl_multi_fdset had to monitor.
That means, the first NULL pointer was sending curl_multi_fdset in seg-fault:
multiResult = curl_multi_fdset(multiSession, &fdread, NULL, NULL, &maxFD);
Trivially, this fixed everything:
multiResult = curl_multi_fdset(multiSession, &fdread, &fdwrite, NULL, &maxFD);
Thanks for asking.
From: paolopiace_at_hotmail.com
To: curl-library_at_cool.haxx.se
Subject: RE: curl_easy vs curl_multi - performance
Date: Mon, 13 Jun 2011 14:34:13 -0700
I want to report that I discovered a BUG in my code.
Everything is now back to normal and the performance of curl_multi is very much in line with sequential curl_easy
Everything works fine.
Thanks for listening.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-06-14