Commit 844c7787 authored by Deomid Ryabkov's avatar Deomid Ryabkov Committed by Cesanta Bot

Ignore SL_EAGAIN

It was observed that sl_Send can return SL_EAGAIN, despite the fact that
we only call write_to_socket if it was reported as writeable.

PUBLISHED_FROM=e4cbacb3f16bb7abb479222d7dcbfbe113a39161
parent 0fe9ec14
...@@ -10626,7 +10626,7 @@ void mg_set_non_blocking_mode(sock_t sock) { ...@@ -10626,7 +10626,7 @@ void mg_set_non_blocking_mode(sock_t sock) {
} }
static int mg_is_error(int n) { static int mg_is_error(int n) {
return (n < 0 && n != SL_EALREADY); return (n < 0 && n != SL_EALREADY && n != SL_EAGAIN);
} }
void mg_if_connect_tcp(struct mg_connection *nc, void mg_if_connect_tcp(struct mg_connection *nc,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment