Skip to content
Commit 8232dddf authored by Andriy Gelman's avatar Andriy Gelman Committed by Carles Cufí
Browse files

shell: telnet: Don't close the connection on EAGAIN error



EAGAIN error is returned if the tcp window size is full. Retry
sending the packet instead of closing the connection if this
error occurs.

Also the full payload may not be sent in a single call to
net_context_send(). Keep track of the number of bytes remaining
and try to send the full payload.

Signed-off-by: default avatarAndriy Gelman <andriy.gelman@gmail.com>
parent 995824ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment