Hang in send() to a socket

Iñigo Lopez Barranco ilopez at albatros-sl.es
Fri Jul 23 19:55:03 EST 2004

Hi. I'm testing a program to send files thru a TCP socket on an MPC5200. The program itself is quite simple: reads block from file, adds headers for a custom protocol, and sends the packet to the socket.
This works without problems on x86 architecture, but in PPC, the programs stops forever in one of the writings to the socket after having sent a random number of packets. Strace says that it stops on a send(), and netstat shows that the connection is stablished, and stays this way:
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0  63903   ESTABLISHED
Until the kernel destroys the socket. The program isn't hanged, and it detects when the socket closes (Connection timed out) if you wait enough, and exits properly. It just stops in send().

Is there any know problem with this on the MPC5200?
The platform is a Lite5200, and kernel linuxppc_2_4_devel from Denx CVS.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

More information about the Linuxppc-embedded mailing list