[Boost-bugs] [Boost C++ Libraries] #11527: socket connection error

Subject: [Boost-bugs] [Boost C++ Libraries] #11527: socket connection error
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-08-06 13:52:14

#11527: socket connection error
 Reporter: danial1360@… | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.58.0 | Severity: Problem
 Keywords: socket , connect |
 image the following code! it uses 2 threads and creates simple server
 client connection
 the code is simple and I use synchronize functions to make it easier to
 in the client thread if I use :

 while (error_ && it != end)
  skt.close(); // skt is socket
  skt.connect(*it++, error_);

 the the program crashes when it want to read or write something to the
 socket !! but if I use:boost::asio::connect(skt, it); then I works
 notice that i will have this problem only if I use the code in two threads
 inside a single process. if I run the code in two different processes
 everything is fine.

 I am using windows 7 x67 and VS2013 but I am using 32bit project and 32bit
 boost library .

Ticket URL: <https://svn.boost.org/trac/boost/ticket/11527>
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:18 UTC