comparison svr-session.c @ 928:7cd89d4e0335

Add new monotonic_now() wrapper so that timeouts are unaffected by system clock changes
author Matt Johnston <matt@ucc.asn.au>
date Thu, 13 Mar 2014 23:50:09 +0800
parents 5bfce5dcd461
children a0819ecfee0b
comparison
equal deleted inserted replaced
927:122fb3532038 928:7cd89d4e0335
93 #endif 93 #endif
94 svr_authinitialise(); 94 svr_authinitialise();
95 chaninitialise(svr_chantypes); 95 chaninitialise(svr_chantypes);
96 svr_chansessinitialise(); 96 svr_chansessinitialise();
97 97
98 ses.connect_time = time(NULL); 98 ses.connect_time = monotonic_now();
99 99
100 /* for logging the remote address */ 100 /* for logging the remote address */
101 get_socket_address(ses.sock_in, NULL, NULL, &host, &port, 0); 101 get_socket_address(ses.sock_in, NULL, NULL, &host, &port, 0);
102 len = strlen(host) + strlen(port) + 2; 102 len = strlen(host) + strlen(port) + 2;
103 svr_ses.addrstring = m_malloc(len); 103 svr_ses.addrstring = m_malloc(len);