Project

General

Profile

Actions

Bug #209

open

No connection attempt after date/time shift

Added by Vladislav Grishenko over 13 years ago. Updated over 13 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
2011-03-20
Due date:
% Done:

0%

Estimated time:
Patch Available:
Yes
Found in Versions:
0.8.7
Confirmed:
No
Branch:
Security:
No
Help Needed:

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

0100-wait.patch (699 Bytes) 0100-wait.patch Vladislav Grishenko, 2011-03-20 21:31
Actions

Also available in: Atom PDF