Implemented the socket timeout functionality + unit test.
Implemented noPort as config option which can be changed via the environment.