10 May 2007 21:28
Sockets not non-blocking when compiling with MingW
Hello. When tinc is compiled with MingW, sockets are not made non-blocking because O_NONBLOCK is not defined anywhere. This leads to weird timeouts when one or more hosts part of a VPN are unreachable, because tinc hangs in connect() (and possibly other places as well). This guy is probably experiencing this bug: http://brouwer.uvt.nl/pipermail/tinc/2007-April/001646.html I've attached a patch that adds some win32-specific code to make sockets non-blocking. I've been using it for a couple of hours, and have experienced no problems so far.
Hello. When tinc is compiled with MingW, sockets are not made non-blocking because O_NONBLOCK is not defined anywhere. This leads to weird timeouts when one or more hosts part of a VPN are unreachable, because tinc hangs in connect() (and possibly other places as well). This guy is probably experiencing this bug: http://brouwer.uvt.nl/pipermail/tinc/2007-April/001646.html(Continue reading)
RSS Feed