On Tue, 10 Mar 2009, Pierre Brico wrote:

Everything is working fine except two little issues:

1. The timeout option doesn't work. I use the following C statement to set the timeout: curl_easy_setopt(ps_ctx->ps_curl, CURLOPT_TIMEOUT, 1L);

[...]

Why is it a difference between Windows and Unix behaviour ? It shouldn't be difficult to place a timeout of 1s for the WaitForMultipleObjects function and to add a code similar to (the Unix code)

Any chance you can provide a full patch for this fix?

2. My second issue is about the writecallback function. I set it with a call
to
  curl_easy_setopt(ps_ctx->ps_curl, CURLOPT_WRITEFUNCTION, write_callback);

In that function, if the automated procedure detects a failure, the write_callback returns 0 indicating a failure as the documentation states it: "If that amount differs from the amount passed to your function, it'll signal an error to the library and it will abort the transfer and return CURLE_WRITE_ERROR." But the library continues the telnet communication without failure!

That sounds like a second bug. You up to providing a fix for that as well?

--

 / daniel.haxx.se

Reply via email to