[Boost-bugs] [Boost C++ Libraries] #12316: ASIO: "Undefined error: 0" on the Mac OS 10.10 and 10.11

Subject: [Boost-bugs] [Boost C++ Libraries] #12316: ASIO: "Undefined error: 0" on the Mac OS 10.10 and 10.11
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-07-07 14:30:49


#12316: ASIO: "Undefined error: 0" on the Mac OS 10.10 and 10.11
--------------------------------------+----------------------------
 Reporter: David Dovodov <ddovod@…> | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.61.0 | Severity: Problem
 Keywords: |
--------------------------------------+----------------------------
 Hello.
 I have some issue with asio.
 When I try to connect/read/write (blocking and async operations), i get
 "Undefined error: 0" in the boost::error_code parameter. Interesting thing
 is that data transfers successfully. Only problem is Undefined error and
 infinity reads with zero bytes read. iOS (device and simulator) has this
 error too.
 If there's nobody listening on the port I try to connect to, "Connection
 refused" error is returned to the async_connect callback (which is correct
 behavior). So "Undefined error: 0" appears only if somebody is listening
 port on the other side.

 Compiling with xCode and standalone clang with command like
 clang++ -std=c++11 -Ipath/to/asio/include async_tcp_echo_server.cpp
 -oserver

 There's an issue on the asio's github tracker, but there's no activity at
 all.
 https://github.com/chriskohlhoff/asio/issues/121

 Thank you a lot!

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