in reply to How to increase Socket buffer size?

Actually, if your application uses UDP then it is most likely designed to tolerate some packet loss. That is the whole point of UDP. With TCP you get handshakes, checksums, acknowledgements, but you pay for it with some overhead and sacrificing some speed. With UDP you get none of that, instead you get a fast protocol with low overhead. At the same time your client program sends it's packets and doesn't care if they get there or not.

Perhaps you need to rethink your strategy regarding this UDP application. Dropping some packets may not be so bad in the long run. Or what about rewriting the socket code in C so it can suck down the packets faster?

Hope this gives you some ideas.

Cheers

  • Comment on Re: How to increase Socket buffer size?

Replies are listed 'Best First'.
Re: Re: How to increase Socket buffer size?
by sureshr (Beadle) on May 06, 2003 at 11:46 UTC
    I am fine with losing 'some packets', but the whole idea of increasing the buffer size is to 'minimize' the packet loss, which I am sure would help during peak resource utilization of the system.
    Thanks,
    -sureshr