Bug #209
openNo connection attempt after date/time shift
0%
Description
in my case, bip doesn't even try to establish connections, if started on my soho router which has not rtc available.
after syncing the time, it shifts too much within select call, (re)connection msec timeout overflows and gets unexpected high values.
debug log:
01-01-1970 05:00:17 I've seen socket 0 !
01-01-1970 05:00:17 Test read on fd 0 1:1
01-01-1970 05:00:17 msec: 1000, sec: 1, usec: 0
19-03-2011 23:59:22 msec: 813946583, sec: 0, usec: 0
19-03-2011 23:59:22 Select timed-out. irc.o timer !
19-03-2011 23:59:22 I've seen socket 0 !
19-03-2011 23:59:22 Test read on fd 0 1:1
19-03-2011 23:59:22 msec: 813946583, sec: 813946, usec: 583000
20-03-2011 00:00:32 msec: 813875835, sec: 813876, usec: 8000
suggested patch performs timeout range check and fixes the issue
Files
Updated by Vladislav Grishenko over 13 years ago
- File 0100-wait.patch 0100-wait.patch added