Re: poll() returns POLLIN but no data ?
From: Maxim Yegorushkin (firstname.lastname_at_gmail.com)
Date: 06/26/05
- Previous message: David Schwartz: "Re: poll() returns POLLIN but no data ?"
- In reply to: David Schwartz: "Re: poll() returns POLLIN but no data ?"
- Next in thread: David Schwartz: "Re: poll() returns POLLIN but no data ?"
- Reply: David Schwartz: "Re: poll() returns POLLIN but no data ?"
- Reply: joe_at_invalid.address: "Re: poll() returns POLLIN but no data ?"
- Reply: Barry Margolin: "Re: poll() returns POLLIN but no data ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 26 Jun 2005 23:49:56 +0400
On Sun, 26 Jun 2005 23:32:46 +0400, David Schwartz <davids@webmaster.com>
wrote:
[]
>> Using blocking sockets with select/poll/epoll/... is fine, read/write
>> won't block if the descriptor has been indicated to be ready for that
>> operation and this is guarantied by POSIX. Blocking accept() can block
>> after a socket has been indicated as ready for read because a client
>> could
>> bail out before you call accept.
>
> It is not guaranteed by POSIX, and it cannot be guaranteed.
I thought this guaranties that
http://www.opengroup.org/onlinepubs/009695399/functions/select.html
Why can't it be guaranteed?
-- Maxim Yegorushkin <firstname.lastname@gmail.com>
- Previous message: David Schwartz: "Re: poll() returns POLLIN but no data ?"
- In reply to: David Schwartz: "Re: poll() returns POLLIN but no data ?"
- Next in thread: David Schwartz: "Re: poll() returns POLLIN but no data ?"
- Reply: David Schwartz: "Re: poll() returns POLLIN but no data ?"
- Reply: joe_at_invalid.address: "Re: poll() returns POLLIN but no data ?"
- Reply: Barry Margolin: "Re: poll() returns POLLIN but no data ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|