Fix ident race condition
authorSai Nane <esainane+github@gmail.com>
Sat, 28 Nov 2015 23:43:40 +0000 (12:43 +1300)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 2 Jan 2016 17:00:07 +0000 (18:00 +0100)
commit2abe71097e6804a9cfae9b1aae544b1b04a9e1c2
treece84589800df98790fa448d140a7a9a62a289332
parente5b84abb18c6419d24d807bd6f84ce44be172385
Fix ident race condition

This creates an entry for the port as soon as the socket is opened,
without duplicates. This allows an identd service to respond correctly
if a request is received before the SSL handshake has finished and been
processed on our side.

Since socketOpen is not used in the project, it is removed here.
Since the only usage of socketInitialized(...) is with oidentd, its
semantic meaning is slightly changed to occur earlier, like socketOpen,
but only once, like the former socketInitialized(...).
src/core/corenetwork.cpp
src/core/corenetwork.h