[lkml]   [2001]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: question on select: How big can the empty buffer space be before select returns ready-to-write?
* Christopher Friesen ( wrote:
> Chris Wright wrote:
> >
> > * Ben Greear ( wrote:
> > > For instance, it appears that select will return that a socket is
> > > writable when there is, say 8k of buffer space in it. However, if
> > > I'm sending 32k UDP packets, this still causes me to drop packets
> > > due to a lack of resources...
> >
> > udp has a fixed 8k max payload. did you try breaking up your packets?
> Are you sure about that? UDP has a 16-bit field for the length. Thus the
> standard technically allows for packet sizes (including header) of up to 2^16
> (roughly 65K) bytes.

no, you are absolutely right, it's 16 bits. sorry for spewing

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:14    [W:0.076 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site