[openEuler-5.10 17/19] tcp: make tcp_read_sock() more robust