curl-library
RE: curl_easy vs curl_multi - performance
Date: Mon, 13 Jun 2011 16:44:22 -0700
I forgot... although the mistake was evident and fixed as described, this is still totally unclear to me:
Why wait(seconds=0.1) or higher allowed curl_multi_fdset to work fine (never in seg-fault) despite that NULL pointer.
It would be eye-opening to know...
-----------------------------------------------------------------------------------------------------
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.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-06-14