This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: BSD socket read() calls blocking indefinately
- From: psheer at icon dot co dot za
- To: Andrew Lunn <andrew dot lunn at ascom dot ch>, psheer at icon dot co dot za, ecos-discuss at sources dot redhat dot com
- Date: Fri, 7 Dec 2001 13:22:54 Africa/Johannesburg
- Subject: Re: [ECOS] BSD socket read() calls blocking indefinately
> > However TCP read() and accept() operations block
> > indefinately even though the Ethernet driver seems
> > to be recieving the packet, and TCP write() calls
> > work perfectly.
>
> Do you have the endianness of the port number correct?
>
My test program connects to port 80 of a Linux machine,
sends a GET request, and then reads the reply. The GET
request gets there, the reply is sent, the reply is
visible with tcpdump. The reply is read by the driver
(I verified this by inserting a scan loop for
"H", "T", "T", "P" at the lowest level of the driver.)
However where the packet goes thereafter I have no clue
and it seems quite difficult to go debugging the TCP
stack.
My read() waits forever.
Can I ask where do a track the packet from here on?
If I can get this working, the port of eCos to this new
board would be almost complete.
-paul
---------------------------------------------
This message was sent using World Mail.
http://www.worldonline.co.za