Socket send problem (ucLinux)
- From: "Sagaert Johan" <sagaert.j AT belgacom.net>
- Date: Sat, 30 Dec 2006 15:17:04 +0100
Hi
I have a problem with sockets:(Coldfire DilnetPC DNP5280)
I have a listen socket that can send data to a remote client.
If a client connects, the server socket opens a file and sent its bytes to
the socket so the remote client can process the bytes.
I noted that when i disrupt (eg 0.2sec ) the network connection the transfer
does not
resume. The same happens when using a slow connection.(e.g. with a gateway
through internet)
The program seems to block on the send() function.
The full sendbuffer seems to block the send() becorse the data can't be
delivered but it should resume as ethernet communication proceeds.
I would expect get a return value of -1 when the network disruption takes
too long (causing a sent timeout) but this is not the case.
When i do this experiment between two windows machines i don't get this
problem. (transfer resumes a few moments i reconnect the network ) neither
does it occur between 2 linux desktop machines.
Is there a problem with the TCPIP stack in ucLinux ? or with the low level
network driver ?
any help much appreciated.
Johan.
.
- Follow-Ups:
- Re: Socket send problem (ucLinux)
- From: Michael Schnell
- Re: Socket send problem (ucLinux)
- Prev by Date: Re: usb architecture
- Next by Date: Re: Socket send problem (ucLinux)
- Previous by thread: error: expected '=', ',', ';', 'asm' or '__attrib
- Next by thread: Re: Socket send problem (ucLinux)
- Index(es):
Relevant Pages
|