Re: UDP messages lost in Ip-stack ?
- From: "Carl Daniel [VC++ MVP]" <cpdaniel_remove_this_and_nospam@xxxxxxxxxxxxxxx>
- Date: Tue, 25 Sep 2007 21:21:33 -0700
Lasse wrote:
It seems to me, the message is lost somewhere between the point
where the network listener gets it and where WSARecvFrom() should
return it. (the Ip-stack).
Note: This has nothing to do with overflow in socket receivbuffer
since there could be max 3 unread messages.
I think you'll find that if you restructure your code to use async IO and
have (at least) 3 outstanding reads at any time that you will very rarely
lose any packets. With a synchronous read from the socket, it's possible
that multiple packets are sent before your receiver ever wakes up, in which
case the IP stack is free to (and in my experience does) discard packets for
which there is no immediate receiver.
-cd
.
- References:
- UDP messages lost in Ip-stack ?
- From: Lasse
- UDP messages lost in Ip-stack ?
- Prev by Date: Re: Obtaining volume path name from open file handle
- Next by Date: Re: UDP messages lost in Ip-stack ?
- Previous by thread: Re: UDP messages lost in Ip-stack ?
- Next by thread: Re: UDP messages lost in Ip-stack ?
- Index(es):
Relevant Pages
|