Previously there was a risk that an in-progress connection with a valid
socket would be selected for polling and its installed onPoll callback
invoked before the onConnect event arrives, resulting in potentially
undefined behavior. Fixed by use of the standard connected() method.