Improve the odds of winning the oidentd race when using SSL for IRC
authorMichael Marley <michael@michaelmarley.com>
Thu, 4 Sep 2014 00:12:31 +0000 (20:12 -0400)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 16 Sep 2014 17:29:08 +0000 (19:29 +0200)
commit215a510afa034d6178ec0c8d2b71a447075645c0
tree08fac55c090b81e733784fe86c3dfe1d46001bd9
parent7c5c2f4141d41b10cfa007a9653d4c12117caac9
Improve the odds of winning the oidentd race when using SSL for IRC

Previously, the .oidentd.conf file was not written until
socketInitialized(), which meant that when using SSL for the IRC
connection, the file would not be written until the SSL negotiation
was complete.  This delay meant that, in practice, oidentd
integration almost never worked when using SSL IRC connections.
This patch adds a new socketConnected() signal that fires as soon
as the connection is open, regardless of encryption status, and
connects the call to the oidentd configuration generator to this
signal.  This gives oidentd integration the same likelihood of
working with SSL connections as with non-SSL connections.
src/core/corenetwork.cpp
src/core/corenetwork.h