NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/54435: reading TCP urgent data with MSG_OOB doesn't clear poll(2) status



The following reply was made to PR kern/54435; it has been noted by GNATS.

From: mlelstv%serpens.de@localhost (Michael van Elst)
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/54435: reading TCP urgent data with MSG_OOB doesn't clear poll(2) status
Date: Mon, 5 Aug 2019 04:09:15 -0000 (UTC)

 uwe%stderr.spb.ru@localhost (Valery Ushakov) writes:
 
 > But this is cheating :) You continue reading from the socket which
 > does succeed and which clears POLLPRI.  The bug I'm reporting is
 > exactly that if you poll the socket in this state you will get POLLPRI
 > even though there is no urgent/oob data.
 
 And I tell you that this is expected behaviour. It's not a second stream
 that you can just read independently (poll/select, then read) and a
 program that acts normally on POLLIN wouldn't even see that.
 
 -- 
 -- 
                                 Michael van Elst
 Internet: mlelstv%serpens.de@localhost
                                 "A potential Snark may lurk in every tree."
 


Home | Main Index | Thread Index | Old Index