Details
-
Bug
-
Resolution: Fixed
-
Major
-
3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 4.0.0, 4.1.0, 4.1.1, 4.1.2, 4.5.0, 4.5.1, 4.6.0, 4.6.1, 4.6.4, 4.6.2, 4.6.3, 4.6.5, 5.0.0, 5.0.1, 5.1.0, 5.1.1, 5.1.2, 5.1.3, 5.5.0, 5.5.1, 5.5.2, 5.5.3, 5.5.4, 5.5.5, 5.5.6, 6.0.0, 6.0.1, 6.0.2, 6.0.3, 6.5.0
-
None
-
Triaged
-
Unknown
-
KV-Engine MH 2nd Beta
Description
According to the manual page for ssl_write it should be called again with the exact same parameters if it fails with that error code. We did try to chunk up error our writes to the sockets so we might change the parameters to the call for the next invocation.
From looking at the code the chunking logic we've got isn't very optimal and we'd be better off pushing the entire buffer down to OpenSSL and loop draining the bio before retrying (until we've filled the underlying socket buffer).