DF-5198 fix socket shutdown in TCPTransport