Gets the timeout setting of the socket.
For details on this, see set_timeout.
a Socket.
the timeout in seconds