apiConnect does not respect timeouts

Description

createConnectionTo calls findRemoteEndpoint and findRemoteEndpoint may block indefinitely waiting for network operations to complete.

This call should happen under a timeout call so connect terminates when it blocks for too long.

Actually, only the Network.Socket.connect call happens under a timeout call. An almost immediately following recvInt32 call can block indefinitely too.

Environment

None

Assignee

Tim Watson

Reporter

Facundo Dominguez

Labels

None

External issue ID

None

OS

Linux

Affects versions

Priority

Major
Configure