prevent repeated reads on broken sockets

This commit is contained in:
Yves Rutschle 2018-08-14 23:05:49 +02:00
parent 8ad32816a6
commit 60df92c2b2

View File

@ -414,7 +414,7 @@ int probe_client_protocol(struct connection *cnx)
if (res == PROBE_AGAIN)
again++;
}
if (again)
if ((again && (n > 0)) || ((n == -1) && (errno == EAGAIN)))
return PROBE_AGAIN;
/* Everything failed: match the last one */