net: Add take_error
to TcpSocket
and TcpStream
#4739
Merged
take_error
to TcpSocket
and TcpStream
#4739