Re: Question on select() and sockets



On Jun 7, 2:29 am, Rainer Weikusat <rweiku...@xxxxxxxxxxx> wrote:

Independently of this, this particular implementation happens to be
Linux and the consense among the people who wrote it (again
simplified) is that it does violate the standard, but that the
standardized behaviours isn't really useful in situations where a lot
of UDP-datagrams are expected to arrive and need to be processed in
realtime, eg any type of video- and/ or audio-streaming. With the
present implementation, the received datagram can be checksummed while
it is being copied into a userspace buffer, which cuts the necessary
memory accesses to do all of it by one third[*]. Which I consider to
be a valid argument.

The standard does not prohibit a UDP datagram from being dropped after
it triggers a 'select' hit and before that program manages to call
'recvmsg'. Any program that has problems with the Linux behavior must
already have a TOCTTOU race.

I do not believe it is possible for this behavior to break a program
that is already broken.

DS
.



Relevant Pages

  • Re: Why not XML based configurationfiles?
    ... I would go further and suggest that, in this context, "Linux" is ... > every once in a while and might come up with a standard (which ... If it's trivial to write a tool to rewrite config files, ... Remember that the costs are distributed... ...
    (comp.os.linux.misc)
  • RE: C++ lib compatibility between Red Hat 9 and 7.3
    ... What he's wanting is a standard C++ ABI. ... same Mathematica binaries run on pretty much every Linux out there. ... >> all of your apps and they neither compile and definitely won't run. ...
    (RedHat)
  • Re: Delphi for .NET and Win32
    ... .Net is cracked up to be an open standard. ... Windows and Linux. ... The big selling point for Windows over Linux is that there's a huge base ... It's hard to find an objective TCO comparison between Windows and Linux. ...
    (borland.public.delphi.non-technical)
  • Re: Do you think its SEXY? N.B. not spam. :)
    ... It's not cross platform i.e. ... for DOS or Windows to work with it on Linux. ... of cc65) is trying to be as much as possible standard C compliant. ... Unises and Windows versions and stepping around the doogie on the ...
    (comp.sys.cbm)
  • Re: Wozu noch DOS?
    ... Linux jedoch zum Betriebssystem, aufgrund irgendeiner schwer faßbaren ... für welchen Compiler sie geschrieben sind, ... *Note Standard Libraries: Standard Libraries. ...
    (de.comp.os.msdos)