ngircd-tor/src
Alexander Barton 684e50f0a4 Correctly handle asynchronously re-established server links
Don't try to establish an outgoing server link after DNS lookup when this
server re-connected on its own in the meantime.
In addition, log a warning message if we try to update the connection
index of an already connected server structure -- and ignore it.

Up to now, both behaviour could lead to a race when the remote server
connects to this daemon while it still prepares the outgoing connection:

 - The local server prepares the new outgoing connection ...
 - in the meantime the remote server becomes connected and registered.
 - Now the new outgoing connection overwrites the (correct) socket handle,
 - then the 2nd connection becomes disconnected: "already registered",
 - and the 1st connection becomes unhandled ("gets lost") because the
   configuration structure is reset because of the wrong socket handle.

This patch hopefully fixes all these problems.
2012-06-09 01:03:48 +02:00
..
ipaddr Only use AI_NUMERICHOST if it is #define'd 2011-11-06 14:13:49 +01:00
ngircd Correctly handle asynchronously re-established server links 2012-06-09 01:03:48 +02:00
portab Test for gai_strerror() 2011-11-06 14:16:59 +01:00
testsuite getpid.sh: Fix testcase error for Debian using sbuild 2012-03-03 18:53:03 +01:00
tool Code cleanup: mostly removing empty lines 2011-02-13 17:52:38 +01:00
.gitignore GIT: added src/src/config.h.in~ to ignore list. 2008-06-11 16:02:06 +02:00
Makefile.am IPv6 support. 2008-02-26 23:50:35 +01:00