cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl misses end of request data before reading response (patch)

From: Frank Meier <frank.meier_at_ergon.ch>
Date: Mon, 13 Jul 2015 16:22:34 +0200

On 07/06/15 23:55, Daniel Stenberg wrote:
> I would rather consider a way to introduce an EOF flag so that a
> callback can actually say "here are the final N bytes of data". Like
> for example allowing a callback to OR the return value with 0x20000000
> and treat that bit as EOF. Of course that'd break all older libcurls
> but would be made to work with a libcurl supporting this! What would
> you think about that?
Sorry for the long wait. I finally got around to write a new patch.
As suggested, in the callback the new READ_FUNC_EOF flag (0x20000000)
can be ORed to the return value to signal the EOF to the library.
what do you think?

cheers, Frank

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2015-07-13