[chrony-dev] [GIT] chrony/chrony.git branch master updated. 3.5-25-g45e41b7

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


This is an automated email from git. It was generated because a ref
change was pushed to the "chrony/chrony.git" repository.

The branch, master has been updated
       via  45e41b7ac1eebc6b75ba4303b0b70e6f80d6ea06 (commit)
       via  27fd7519150f36a12f6c91e59b4b3615377f0532 (commit)
       via  4d26cfc92b878b8a90b60488361bd8cdba84903a (commit)
      from  d78680912e6ea476257d533bf00362e2827f8997 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 45e41b7ac1eebc6b75ba4303b0b70e6f80d6ea06
Author: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
Date:   Wed Jul 24 11:46:39 2019 +0200

    socket: avoid unnecessary bind() call
    
    Don't call bind() if the specified local address of a socket has port 0
    and the "any" address. It will be bound automatically on connect() or
    sendmsg().

commit 27fd7519150f36a12f6c91e59b4b3615377f0532
Author: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
Date:   Tue Jul 23 17:26:29 2019 +0200

    socket: add support for socket() flags
    
    On start, check if the SOCK_CLOEXEC and SOCK_NONBLOCK flags are
    supported in the socket() call and use them instead of fcntl() in order
    to reduce the number of system calls required to send a client request.

commit 4d26cfc92b878b8a90b60488361bd8cdba84903a
Author: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
Date:   Tue Jul 23 15:09:24 2019 +0200

    socket: make all sockets non-blocking
    
    All networking code in chronyd (NTP server/client, signd client, cmdmon
    server) assumes sending a message will not block, but only the signd
    client actually checks for a write event and only the NTP server
    requests a non-blocking socket. The cmdmon server and NTP client
    (if using one socket for all servers) might be blocked.
    
    chronyc doesn't need a non-blocking socket, but it is not expected to
    block as it sends only one message at a time.
    
    Prefer dropped messages over blocking in all cases. Remove the
    SCK_FLAG_NONBLOCK flag and make all sockets non-blocking.

-----------------------------------------------------------------------

Summary of changes:
 ntp_io.c |  2 +-
 socket.c | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 socket.h |  1 -
 3 files changed, 63 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
chrony/chrony.git

-- 
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/