transport: In TcpTransport and UdpTransport processEvents, if receive gets zero bytes, return from the read loop.