Wait for the creation of a socket