send_n_data SSL path does not handle SSL_ERROR_WANT_WRITE properly #73

Closed
opened 2026-07-20 17:14:37 +02:00 by TapTap · 0 comments
Owner

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

## 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TapTap/FastSync#73