proper blocking test around the call to flow_control_on()

This commit is contained in:
Jeff Hill
1999-10-13 22:35:04 +00:00
parent d7f730d49b
commit 54f10f1fe2

View File

@@ -184,7 +184,7 @@ int cac_select_io (struct timeval *ptimeout, int flags)
* we are getting behind
*/
if (piiu->sock_proto==IPPROTO_TCP) {
if (ptimeout->tv_sec==0 || ptimeout->tv_usec==0) {
if (ptimeout->tv_sec==0 && ptimeout->tv_usec==0) {
flow_control_on(piiu);
}
}