On Tue, 1 Apr 2014, [email protected] wrote:

It seems like it does--sort of. It seems as though the problem with this approach is, as far as I can tell, none of the callbacks have any idea whether there's more data to read from the server... i.e. if the server you're uploading to has a response that's longer than the buffer the callback was handed to read it, you will not be able to read the whole response (this is often not interesting, but sometimes it might be).

I don't understand. If you indeed want to stop the transfer, then no you won't get any more data. If you actually want to get the full response then I suggest you don't stop the transfer until you've gotten the amount you want.

What am I missing?

As it happens, I'm opening the socket myself (In actuality I'm talking over a Unix domain socket)... How does curl behave if I simply close the socket?

Which socket are you talking about here?

--

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

Reply via email to