]> arthur.barton.de Git - ngircd.git/commit
Send a PING at the end of the server sync to detect it
authorAlexander Barton <alex@barton.de>
Tue, 24 Jan 2012 01:46:12 +0000 (02:46 +0100)
committerAlexander Barton <alex@barton.de>
Tue, 24 Jan 2012 01:46:12 +0000 (02:46 +0100)
commitbc20f9ec1076a67a81ed8e7c3489ffbdf3387e53
tree58259c2cdf178293d43434eb4eeef1b91ffdf1ef
parent5a200e154347bde2a885ad1ede620d8d946b6420
Send a PING at the end of the server sync to detect it

At the end of sending all "state" to the remote server, a PING command
is sent to request a PONG reply. Until then, no "regual" PING was sent,
so Conn_LastPing(<connection>) is null and now becomes non-null in the
PONG command handler.

So the servers are still synchronizing when Conn_LastPing(<connection>)
is 0, which could easily be tested.
src/ngircd/irc-login.c
src/ngircd/numeric.c