-
- Downloads
curl_easy_perform_ev: debug/test function
This function is meant to work *exactly* as curl_easy_perform() but will use the event-based libcurl API internally instead of curl_multi_perform(). To avoid relying on an actual event-based library and to not use non-portable functions (like epoll or similar), there's a rather inefficient emulation layer implemented on top of Curl_poll() instead. There's currently some convenience logging done in curl_easy_perform_ev which helps when tracking down problems. They may be suitable to remove or change once things seem to be fine enough. curl has a new --test-event option when built with debug enabled that then uses curl_easy_perform_ev() instead of curl_easy_perform(). If built without debug, using --test-event will only output a warning message. NOTE: curl_easy_perform_ev() is not part if the public API on purpose. It is only present in debug builds of libcurl and MUST NOT be considered stable even then. Use it for libcurl-testing purposes only. runtests.pl now features an -e command line option that makes it use --test-event for all curl command line tests. The man page is updated.
Showing
- lib/easy.c 347 additions, 51 deletionslib/easy.c
- lib/easyif.h 3 additions, 0 deletionslib/easyif.h
- src/tool_cfgable.h 4 additions, 1 deletionsrc/tool_cfgable.h
- src/tool_getparam.c 8 additions, 0 deletionssrc/tool_getparam.c
- src/tool_operate.c 10 additions, 0 deletionssrc/tool_operate.c
- tests/runtests.1 5 additions, 1 deletiontests/runtests.1
- tests/runtests.pl 29 additions, 5 deletionstests/runtests.pl
Loading
Please register or sign in to comment