fixes bug with server erroneously handling the opening of a socket prior to receiving a request - and sets a default time out for each socket connection to 5 seconds