Fix ident race condition 163/head
authorSai Nane <esainane+github@gmail.com>
Sat, 28 Nov 2015 23:43:40 +0000 (12:43 +1300)
committerSai Nane <esainane+github@gmail.com>
Sun, 29 Nov 2015 00:39:49 +0000 (13:39 +1300)
commit738828e0d4377d0037d8a37c9b991c6fd627b406
tree89d760b2a0f68271baf7001e07d40ee84f394b86
parent73abdb11acdff97882a489c7bf98eb53967c2c6f
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