mirror of
https://github.com/yrutschle/sslh.git
synced 2025-05-30 07:09:33 +03:00
prevent repeated reads on broken sockets
This commit is contained in:
parent
8ad32816a6
commit
60df92c2b2
2
probe.c
2
probe.c
@ -414,7 +414,7 @@ int probe_client_protocol(struct connection *cnx)
|
|||||||
if (res == PROBE_AGAIN)
|
if (res == PROBE_AGAIN)
|
||||||
again++;
|
again++;
|
||||||
}
|
}
|
||||||
if (again)
|
if ((again && (n > 0)) || ((n == -1) && (errno == EAGAIN)))
|
||||||
return PROBE_AGAIN;
|
return PROBE_AGAIN;
|
||||||
|
|
||||||
/* Everything failed: match the last one */
|
/* Everything failed: match the last one */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user