mirror of
https://github.com/znc/znc.git
synced 2026-08-07 01:13:25 +02:00
Update to latest Csocket
This fixes the "busy loop waiting for an SSL handshake to finish" which the last "Update to latest Csocket" was already supposed to fix. However, that fix had a bug if poll() is used instead of select(). poll()'s timeout argument is in milliseconds while select also allows microseconds. Since Csocket originally used select(), it expects the microseconds-approach. This means it has to divide by 1000 to get the timeout argument for poll(). However, the iQuickReset which was used to "fix" (rather: hide) the busy loop was less than 1ms so this still resulted in a timeout of 0 (= busy loop) because integer division truncates the result. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Reference in New Issue
Block a user