diff --git a/src/raw_sock.c b/src/raw_sock.c index 52a48a5e4..b7c9f2b73 100644 --- a/src/raw_sock.c +++ b/src/raw_sock.c @@ -329,7 +329,7 @@ static int raw_sock_from_buf(struct connection *conn, struct buffer *buf, int fl if (ret < try) break; } - else if (ret == 0 || errno == EAGAIN) { + else if (ret == 0 || errno == EAGAIN || errno == ENOTCONN) { /* nothing written, we need to poll for write first */ __conn_data_poll_send(conn); break;