[nanomsg] Re: [Non-DoD Source] status update libnng

  • From: Jan Bramkamp <crest@xxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Thu, 5 Jan 2017 12:04:02 +0100



On 05/01/2017 11:52, Garrett D'Amore wrote:

TCP works now.  OMG, close() vs. accept() is such a non-portable
nightmare.  I almost went down the path of pthread cancellation.
Thankfully, that crisis is now averted.  I never realized just how
broken the use of UNIX file descriptors in the face of close() and
multiple threads really are.  But its working now . Thank goodness for
shutdown(2) and dup2().

Have a look at http://www.daemonology.net/blog/2011-12-17-POSIX-close-is-broken.html.

Other related posts: