lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAFZ0FUUQgQ1FwFMEsDGYNDhW7vt1eB35-if0CUpBAvs-j-G1zA@mail.gmail.com>
Date:	Thu, 10 Nov 2011 16:35:19 +0800
From:	Robin Dong <hao.bigrat@...il.com>
To:	linux-kernel@...r.kernel.org
Cc:	davidel@...ilserver.org, Dave Jones <davej@...hat.com>,
	coly <colyli@...il.com>
Subject: question about epoll

Hi,
I am a linux user and I found some question when using epoll with EPOLLET.

My program's step:
1. create a socket (sfd) and connect to server2. create epoll (efd)3.
add socket descriptor (sfd) to epoll (efd) with flag EPOLLET4. get a
EPOLLOUT event through epoll_wait
after that, the program will nerver get a EPOLLOUT event because it
use EPOLLET mode (the same event will not be got twice)
BUT,when a message comes from server,the client socket will get a
event and this event contains EPOLLOUT and EPOLLIN, looks epoll_wait
return too much events than it should
My question is: Is this a designed mechanism or  a bug for epoll ?
Any reply will be appreciate.

-- 
--
Best Regard
Robin Dong
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ