Configure a socket after it is created by origin and before it is returned by createSocket.
createSocket
the socket to be configured.