Differences From Artifact [4775886a79]:
- File
src/tls/OFSecureTransportTLSStream.m
— part of check-in
[1a3613d573]
at
2023-09-10 12:11:53
on branch trunk
— More consistency between TLS implementations
While GnuTLS and SecureTransport haven't shown in practice to need this,
this makes it more robust for future changes in those. In theory, both
could return less data on a read than they have buffered, meaning the
delimiter is not found but in the buffered data, which would then make
them have the same issue OpenSSL had with hanging connections (though
there the problem was that the BIO was not processed and never would
without the same change as in this commit). (user: js, size: 7445) [annotate] [blame] [check-ins using] [more...]
To Artifact [89fd642a80]:
- File
src/tls/OFSecureTransportTLSStream.m
— part of check-in
[a61e0594b4]
at
2023-10-15 12:32:29
on branch trunk
— Add -[OFStream lowlevelIsAtEndOfStream]
This allows for a much cleaner solution to avoid the internal read
buffer of e.g. a TLS connection never being processed while waiting for
a delimiter. (user: js, size: 6894) [annotate] [blame] [check-ins using] [more...]
︙ | |||
14 15 16 17 18 19 20 | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | - | */ #include "config.h" #include <errno.h> #import "OFSecureTransportTLSStream.h" |
︙ | |||
165 166 167 168 169 170 171 | 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | - + - - - - - + - - - - - - - - - - - - - - - - + + - - - | requestedLength: length bytesWritten: bytesWritten errNo: 0]; return bytesWritten; } |
︙ |