Skip to content

TCPTransmitterSocket: handle partial sends and retry on EINTR/EAGAIN - #427

Open
corrodis wants to merge 1 commit into
developfrom
sc/TcpSendRetry
Open

TCPTransmitterSocket: handle partial sends and retry on EINTR/EAGAIN#427
corrodis wants to merge 1 commit into
developfrom
sc/TcpSendRetry

Conversation

@corrodis

Copy link
Copy Markdown
Contributor

::send() may transmit fewer bytes than requested; loop until the whole buffer is written. Retry instead of throwing on EINTR and EAGAIN (temporary back-pressure), and throw if send() returns 0.

::send() may transmit fewer bytes than requested; loop until the whole
buffer is written. Retry instead of throwing on EINTR and EAGAIN
(temporary back-pressure), and throw if send() returns 0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📋 Triage

Development

Successfully merging this pull request may close these issues.

2 participants