Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.apps > #473

Re: Strange EPOLLOUT|EPOLLET behaviour (spurious events)

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Newsgroups comp.os.linux.development.apps
From Christof Meerwald <NOSPAM-seeMySig+upk5+@usenet.cmeerw.org>
Subject Re: Strange EPOLLOUT|EPOLLET behaviour (spurious events)
References <slrnjpgo5a.q7.cmeerw@msgid.cmeerw.org> <87ehrbmpg8.fsf@sapphire.mobileactivedefense.com>
Organization Hacking@Home
X-PGP-Key 1024D/2B10BE68, 1998-06-29
X-PGP-Fingerprint 0289 5466 C1F5 B03C DBA7 6304 8CAF 9782 2B10 BE68
User-Agent slrn/pre1.0.0-16 (Linux)
Message-ID <slrnjphp64.q7.cmeerw@msgid.cmeerw.org> (permalink)
Cancel-Lock sha1:btg62cgNG2/xVfJtlYUmItffhi4=
X-NNTP-Posting-Host localhost
Date 26 Apr 2012 06:01:40 GMT
Lines 34
NNTP-Posting-Host 84.200.12.152
X-Trace news.sunsite.dk DXC=Clhi3MVAZn:1@QH[VaTAe9YSB=nbEKnk;1]U`^^g71K?8`CEJGOoTk?aTD[Ib<knO7Jo;nN@KfW31bdVhJ;BIJm7
X-Complaints-To staff@sunsite.dk
Xref csiph.com comp.os.linux.development.apps:473

Show key headers only | View raw


On Wed, 25 Apr 2012 23:11:51 +0100, Rainer Weikusat wrote:
> Christof Meerwald <NOSPAM-seeMySig+uyk5+@usenet.cmeerw.org> writes:
>> But as I am using EPOLLET, I wouldn't expect to get any EPOLLOUT
>> events on that socket as send never returns EAGAIN (and there isn't
>> any state transition).
> That's expected behaviour: You get EPOLLOUT as soon as 'a send
> operation' completed.

Well, that's what appears to be happening, but is it documented
anywhere?

Looking at http://linux.die.net/man/7/epoll I see:

"The suggested way to use epoll as an edge-triggered (EPOLLET)
interface is as follows: with nonblocking file descriptors; and by
waiting for an event only after read(2) or write(2) return EAGAIN."

and

"Do I need to continuously read/write a file descriptor until EAGAIN
when using the EPOLLET flag (edge-triggered behavior)? Receiving an
event from epoll_wait(2) should suggest to you that such file
descriptor is ready for the requested I/O operation. You must consider
it ready until the next (nonblocking) read/write yields EAGAIN."

Nothing there suggests that I should get an EPOLLOUT as soon as "a
send operation" completed.


Christof

-- 
http://cmeerw.org                              sip:cmeerw at cmeerw.org
mailto:cmeerw at cmeerw.org                   xmpp:cmeerw at cmeerw.org

Back to comp.os.linux.development.apps | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Strange EPOLLOUT|EPOLLET behaviour (spurious events) Christof Meerwald <NOSPAM-seeMySig+uyk5+@usenet.cmeerw.org> - 2012-04-25 20:38 +0000
  Re: Strange EPOLLOUT|EPOLLET behaviour (spurious events) Rainer Weikusat <rweikusat@mssgmbh.com> - 2012-04-25 23:11 +0100
    Re: Strange EPOLLOUT|EPOLLET behaviour (spurious events) Christof Meerwald <NOSPAM-seeMySig+upk5+@usenet.cmeerw.org> - 2012-04-26 06:01 +0000
      Re: Strange EPOLLOUT|EPOLLET behaviour (spurious events) Rainer Weikusat <rweikusat@mssgmbh.com> - 2012-04-26 15:14 +0100
      Re: Strange EPOLLOUT|EPOLLET behaviour (spurious events) Christof Meerwald <NOSPAM-seeMySig+u0k5+@usenet.cmeerw.org> - 2012-04-26 21:11 +0000

csiph-web