RejectedSoftware Forums

Sign up

Win32 connectTcp() blocks forever if fail to connect

What is the reason for exclusion of FD_CONNECT from WSAAsyncSelect in Win32TCPConnection constructor? Without it Win32TCPConnection.connect() never ends when I try connect to non-exists address. I noticed this when trying to implement reconnection with a pause. Is there another way to repeat client connections at a predetermined interval which I have not noticed?

Found example

Found tricky workaround example https://github.com/rejectedsoftware/vibe.d/issues/540#issuecomment-42465091. But the question is valid.

Re: Found example

On Mon, 20 Oct 2014 13:11:11 GMT, Alex Simonov wrote:

Found tricky workaround example https://github.com/rejectedsoftware/vibe.d/issues/540#issuecomment-42465091. But the question is valid.

Fixed now by 96192f7.