Re: Socket send problem (ucLinux)
- From: Michael Schnell <mschnell_at_bschnell_dot_de@xxxxxxx>
- Date: Sat, 30 Dec 2006 21:58:08 +0100
I noted that when i disrupt (eg 0.2sec ) the network connection the transfer
does not
resume.
If the Network connection is broken, neither of the sockets is informed that the connection is lost. Both think it's still working.
The one that some time later sends a packet does not receive an acknowledge packet from the addressees stack, so, after some 90 seconds it declares the connection broken and the application is informed. Still the other end thinks the connection is still working (though idle).
If (e.g.) the client application knows that the connection is broken, it might try a reconnect. If the cable is restored, the server will decline the connect, as it thinks there is still a working connection.
To improve this situation you need to implement a life check protocol lin the application or use the stack's "keep alive" feature.
-Michael
.
- Follow-Ups:
- Re: Socket send problem (ucLinux)
- From: Sagaert Johan
- Re: Socket send problem (ucLinux)
- References:
- Socket send problem (ucLinux)
- From: Sagaert Johan
- Socket send problem (ucLinux)
- Prev by Date: Socket send problem (ucLinux)
- Next by Date: Re: Socket send problem (ucLinux)
- Previous by thread: Socket send problem (ucLinux)
- Next by thread: Re: Socket send problem (ucLinux)
- Index(es):
Relevant Pages
|