Subject: [Boost-bugs] [Boost C++ Libraries] #10367: kqueue on OSX broke support for read-only file descriptors
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-08-17 23:57:16
#10367: kqueue on OSX broke support for read-only file descriptors
-----------------------------------+------------------------------
Reporter: alexander.afanasyev@⦠| Type: Bugs
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.56.0
Severity: Problem | Keywords:
-----------------------------------+------------------------------
Prior 1.56, we were successfully using
`boost::asio::posix::stream_descriptor` with libpcap (file descriptor
retrieved via `pcap_get_selectable_fd`).
My understanding, that change
https_github.com_boostorg_asio_commit_660e9fe30204e0ada0d1fd40c48015810d2647dc
(replace _ with /) required all file-descriptors to be both readable and
writeable (e.g., register_descriptor always registers EVFILT_READ and
EVFILT_WRITE events).
In the case of libpcap, the file descriptor only works in one direction
(read) and attempt to register EVFILT_WRITE event results in `assign:
Invalid argument` error.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10367> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC