Scott David Daniels wrote: > 找尋自己的一片天 wrote: >> I got a problem about UDP. >> >> How do I get the UDP buffer size? >> >> When the server had some delay in handling incoming UDP, it will lost >> some package. I wonder it's because the system buffer size, is there any >> ways to find the exactly size of the buffer? > > UDP is defined as "best effort then give up," so _everything_ that > handles a UDP packet is allowed to drop it; that means switchers, > routers, ..., anything along the path to the target application. > So, you cannot expect to do any better than a conservative guess, > perhaps augmented by dynamic scaling. > > --Scott David Daniels > scott.dani...@acm.org
I would like to add, that you are most likely to lose packages because they are to big, I can not remember for sure if UDP had a fixed limit above what the MTU does, but you might want to look at that direction too. -- MPH http://blog.dcuktec.com 'If consumed, best digested with added seasoning to own preference.' -- http://mail.python.org/mailman/listinfo/python-list