[exim-dev] [Bug 1775] test 0564 fails to bind to socket and …

Startseite
Nachricht löschen
Nachricht beantworten
Autor: admin
Datum:  
To: exim-dev
Betreff: [exim-dev] [Bug 1775] test 0564 fails to bind to socket and dies, leaving spool/test/log around
https://bugs.exim.org/show_bug.cgi?id=1775

--- Comment #2 from Kirill Miazine <km@???> ---
I understand there may be doubts about adding a retry mechanism to attempt to
bind() several times. Exim itself has this commeint in daemon.c:

    /* Now bind the socket to the required port; if Exim is being restarted
    it may not always be possible to bind immediately, even with SO_REUSEADDR
    set, so try 10 times, waiting between each try. After 10 failures, we give
    up. In an IPv6 environment, if bind () fails with the error EADDRINUSE and
    we are doing wildcard IPv4 listening and there was a previous IPv6 wildcard
    address for the same port, ignore the error on the grounds that we must be
    in a system where the IPv6 socket accepts both kinds of call. This is
    necessary for (some release of) USAGI Linux; other IP stacks fail at the
    listen() stage instead. */


Why not have the same in the tests?

In any case, the mkdirs could anyway be moved till after bind() has been
successful.

--
You are receiving this mail because:
You are on the CC list for the bug.