Re: [Boost-bugs] [Boost C++ Libraries] #8538: asio: race condition for epoll & kpoll

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8538: asio: race condition for epoll & kpoll
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-01 20:49:02

#8538: asio: race condition for epoll & kpoll
  Reporter: Leonid Gershanovich <gleonid@…> | Owner:
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: None
   Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords:

Comment (by Leonid Gershanovich <gleonid@…>):

 I ran into above problem when one thread was calling read operations on
 socket, while another thread, on certain conditions, was calling ''close''
 on the same socket object.

 I know that on one hand asio's documentation states that asio's
 ''basic_datagram_socket'', ''basic_stream_socket'' are not thread safe for
 shared objects, but on the other hand - asio's code already has mutexes
 and locks.

 In my mind it would be logical to either completely remove locking, since
 documentation does not make any guarantees about thread safety, or make
 sure that existing locks perform protection correctly.

 Thanks for taking time to consider my thoughts.

Ticket URL: <>
Boost C++ Libraries <>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:13 UTC