cURL / Mailing Lists / curl-library / Single Mail


Re: back to non-blocking read/write functions

From: Daniel Stenberg <>
Date: Thu, 15 Nov 2007 23:28:05 +0100 (CET)

On Thu, 15 Nov 2007, Dmitriy Sergeyev wrote:

> Are you intending that this curl_easy_pause() should be called outside
> read/write callback?

Yes, or from within it. I wouldn't restrict it to either way.

> I.e. operation blocking is displayed by the read/write callback returning
> special blocking-result-code.

I think it will make sense to support it that way basically because in most
typical situations users will write their apps that way and that would then be
the least surpring way to support it.

It made me think about allowing a write callback to deal with a part of the
buffer and then block, instead of just blocking everything... But on second
thoughts I think we can ignore that for simplicity.

  Commercial curl and libcurl Technical Support:
Received on 2007-11-15