curl-library
RE: SSL/TLS support using Windows SSPI Schannel API
Date: Tue, 24 Apr 2012 20:27:11 +0200 (CEST)
On Mon, 23 Apr 2012, Salisbury, Mark wrote:
> So you're saying that the SSL write method could consume all the data (and
> thus return bytes written = full amount), not send all the encrypted data,
> and it will be called again to write the remaining bytes?
>
> This is good. I'm trying to follow how this works but it's not
> straightforward... Curl_write calls the send method, Curl_write is called
> by many places, but a rather common one I think is transfer.c.
>
> This makes me think that if the send method indicates it has written
> (consumed) all the data it may not be called again to write out the
> remaining bytes -
If it would work like that and we would have that risk, then we would of
course have to make sure we don't give up before the buffer has been flushed
properly.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-04-24