/[svn]/ircd-hybrid/branches/8.2.x/src/s_bsd.c
ViewVC logotype

Diff of /ircd-hybrid/branches/8.2.x/src/s_bsd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8939 by michael, Mon Apr 22 09:51:16 2019 UTC revision 8940 by michael, Sat Apr 27 23:45:33 2019 UTC
# Line 275  comm_settimeout(fde_t *F, uintmax_t time Line 275  comm_settimeout(fde_t *F, uintmax_t time
275    assert(F);    assert(F);
276    assert(F->flags.open == true);    assert(F->flags.open == true);
277    
278    F->timeout = event_base->time.sec_monotonic + (timeout / 1000);    F->timeout = event_base->time.sec_monotonic + timeout;
279    F->timeout_handler = callback;    F->timeout_handler = callback;
280    F->timeout_data = cbdata;    F->timeout_data = cbdata;
281  }  }
# Line 298  comm_setflush(fde_t *F, uintmax_t timeou Line 298  comm_setflush(fde_t *F, uintmax_t timeou
298    assert(F);    assert(F);
299    assert(F->flags.open == true);    assert(F->flags.open == true);
300    
301    F->flush_timeout = event_base->time.sec_monotonic + (timeout / 1000);    F->flush_timeout = event_base->time.sec_monotonic + timeout;
302    F->flush_handler = callback;    F->flush_handler = callback;
303    F->flush_data = cbdata;    F->flush_data = cbdata;
304  }  }
# Line 388  comm_connect_tcp(fde_t *F, const struct Line 388  comm_connect_tcp(fde_t *F, const struct
388      return;  /* ... and quit */      return;  /* ... and quit */
389    }    }
390    
391    comm_settimeout(F, timeout * 1000, comm_connect_timeout, NULL);    comm_settimeout(F, timeout, comm_connect_timeout, NULL);
392    comm_connect_tryconnect(F, NULL);    comm_connect_tryconnect(F, NULL);
393  }  }
394    

Legend:
Removed from v.8939  
changed lines
  Added in v.8940

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28