From: Christopher Kohlhoff (chris_at_[hidden])
Date: 2005-12-28 07:40:33
--- Rene Rivera <grafik.list_at_[hidden]> wrote:
> The sender doesn't discard.
I didn't mean that the sender discards, only that the datagram
being sent can be discarded immediately by the TCP/IP stack if
the receiving socket's buffer is full. The sender is not aware
> If it where any other way the test that I wrote would show
> "missing" receives.
It does indeed exhibit many missing receives on two of my
systems (one Linux, the other Mac OS X, both uniprocessor).
> But Calebs results show all messages arriving, as would be
> expected from the localhost device.
I suspect that Caleb is using a multiprocessor machine, and so
the behaviour I described does not happen for him. However on my
systems with "flow control" enabled it is still necessary to
include the additional performance optimisations to get the
substantial improvement. It would be interesting to rerun the
test on a multiprocessor machine with these changes included.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk