commit | cf265a8cf3059b34209cdef8afb3b77246614e68 | [log] [tgz] |
---|---|---|
author | Nikias Bassen <nikias@gmx.li> | Tue May 21 01:31:35 2019 +0200 |
committer | Nikias Bassen <nikias@gmx.li> | Tue May 21 01:31:35 2019 +0200 |
tree | 570846765b32e2b42b27fcc8c0032e45180c3290 | |
parent | 873252dc8b4e469c7dc692064ac616104fca5f65 [diff] |
socket: Move initialization of timeval structure into retry loop in socket_check_fd() Depending on the platform, select() may modify the timeval structure to indicate the amount left on the timer, so we reset the timeout before calling select() again. Thanks to sctol for reporting.