This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: BSD socket read() calls blocking indefinately


psheer@icon.co.za wrote:

> > > 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

I have a similar problem.
I written a client-server application and I noticed that somtimes during
the transfer the read() blocks the program by waiting forever.

Andrea.


--
Ing. Andrea Acquaviva
D.E.I.S. - Universita' di Bologna
V.le Risorgimento, 2    40136 BOLOGNA (ITALY)
Tel: (+39) 051 20 93787 Fax: (+39) 051 2093786




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]