]> git.ipfire.org Git - thirdparty/chrony.git/commit
ntp: create new socket for each client request
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 13 Aug 2014 16:11:34 +0000 (18:11 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 15 Aug 2014 08:58:43 +0000 (10:58 +0200)
commita9b9e7befea9635e37d56a46ef7661b2b4c91199
tree5314d7348e959b3005191761e06ab0fda85f36c9
parentead9394a31f0ce02228b1cdc67f8b152aefc69e5
ntp: create new socket for each client request

Create a new connected client socket before each request and close it
when a valid reply is received.

This is useful when the network configuration is changed and the client
socket should be reconnected, but the old bound address remains valid
and sendmsg() doesn't return with an error.
ntp_core.c