Realized socket timeout and impl. clientProtocol