curl-library
curl_easy_pause problems
Date: Sun, 8 Apr 2012 16:09:55 +0200
I wrote a simple node.js binding for libcurl:
https://github.com/Skomski/node-curl
I use the multi interface and single threaded.
Now I face two problems with `curl_easy_pause`:
1.
When I call `curl_easy_pause` with CURLPAUSE_ALL I always get the
error: `Failure when receiving data from the peer`.
In my debugging sessions it seems that a libev event slips through
after the pause and calls curl_multi_socket_action. Can that be the
problem?
I can avoid that problem when I call curl_multi_socket_action with
action=0 or when I return CURL_WRITEFUNC_PAUSE from my write callback.
2.
When I call `curl_easy_pause` with CURLPAUSE_CONT nothing happens.
Code: https://github.com/Skomski/node-curl/blob/unstable/src/curl_multi_wrapper.cc
Test: https://github.com/Skomski/node-curl/blob/unstable/test/testfail-pause-resume.js
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-08