A possibly pedantic question, but only when it does I/O, or also when/if it is
in poll/select?
What distinguishes this EMSGSIZE from a run-of-the-mill EMSGSIZE error such as
one gets from trying to send a datagram larger than SO_SNDBUF?
That is something that happens all the time in netperf when people forget a -m
option on UDP_STREAM tests :) Netperf gets the error and exits. But supposing
I wanted to make netperf more sophisticated in that regard - what sort of things
must it do? Call getsockopt(SO_SNDBUF) to check the size of the failed send
against SO_SNDBUF and only then decide if it is an error on this send or an ICMP
Datagram Too Big arrived indication from a previous send? I know that netperf
already has this information, so using it as the example is a bit stretched, but
lets presume for the moment that netperf just has a socket handed to it from
"somewhere."
rick jones
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html