send_n_data SSL path does not handle SSL_ERROR_WANT_WRITE properly #73
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
In lines 68-90, the function handles SSL writes:
If SSL reports (non-blocking I/O), returns <= 0 with indicating WANT_WRITE. The current code treats this as a fatal error, but it should retry. Similarly, during a renegotiation would cause the same issue.
The same problem exists in for .
Location
Suggested Fix
After a failed SSL operation, check the error and retry for WANT_WRITE/WANT_READ:
Severity
Medium
Category
Bug