On Wed, 26 Jan 2011, Christiano F. Haesbaert wrote: > Hi there, > > This diff adds udp support with PPS (packet per second) accounting and > changes tcpbench to use libevent instead of poll(2). > > The sender/client is pretty stupid, it sends as much as possible until > a ENOBUFS is reached, then it sleeps for 50ms, I'm not sure this is > acceptable, we don't have sched_yield(2) which would do the work so I > chose this random value, please correct me.
Instead of sleeping, can you not wait for the fd to be writable again? (I haven't tried this, just wondering) -d