Re: pipe write buffer




Rainer Temme wrote:
davids@xxxxxxxxxxxxx wrote:
So, either a packet is discarded (in this case POLLIN is not signalled)
or POLLIN is signalled and there is something to read, or an
error-condition.

You are incorrect. Linux in fact does that and it in fact broke code.

David,

please show us/me sume code that shows this behaviour.

Rainer

See the Linux inetd denial of service attack thread. Unfortunately,
inetd assumed that a read hit for 'select' guaranteed that a
subseqeuent 'read' would not block. However, the Linux kernel decided
to drop the packet in-between the 'select' hit and the 'read' hit
(which it has the absolute right to do at any time), and 'inetd'
blocked in 'read'.

DS

.



Relevant Pages

  • Re: sysctl kern.ipc.somaxconn limit 65535 why?
    ... out what, sys% usage went through the roof when this limit was hit, issue ... FreeBSD is not Windows or Linux and never will be. ... grey areas in the various standards that *BSD, Linux, Solaris, Windows ...
    (freebsd-current)
  • RE: Linksys 54g Support - PLEASE!
    ... Apparently the WPC11 could work under Linux, I wonder if these instructions ... su - then hit Enter and you will be prompted for your root password. ...
    (Fedora)
  • Re: Strange things at start-up
    ... If I hit Ctrl+Alt+Backspace, system starts fine and any user can log in the usual screen, but I can see for a short time the no-graphical login screen with small characters. ... no problem at all with Linux: shall I need to post any log file? ... Linux Fedora Core 4 on Maxdata Eco 3200 ...
    (Fedora)
  • Re: Disobeying jet engines - why?
    ... I do the complicated stuff in Linux, not sure if I did hit the 1M lines ... Oh in C (or Basic or whatever HLL) using the debugger is not much ... The main thing HLLs do is hide the CPU details from the programmer. ...
    (sci.electronics.design)
  • Re: SUSE 10.2 Refresh rate?
    ... encounter with linux. ... Everything went fine except on first boot my ... If not hit Ctrl + Alt + F2. ... Now sax2 should start. ...
    (alt.os.linux.suse)