making it possible to re-use socket addresses
fixing flawed unit tests for tcp socket streams