Package: imapproxy
Version: 1.2.6-5
Severity: wishlist

Hello

If during configuration a wrong hostname is entered, imapproxy hangs
in an endless loop. That means the server would not start up if
the network is broken. 

I'm not sure if there's a policy for this but I would prefer the app
to just terminate after e.g. three retries but don't affect the other
programs.

bye,

-christian-


P.S.: The problematic code is this for() in src/main.c:

    for( ;; )
    {
    if ( ( gaierrnum = getaddrinfo( PC_Struct.server_hostname,
                    PC_Struct.server_port,
                    &aihints, &ai ) ) )
    {
        syslog( LOG_ERR,
            "%s: getaddrinfo() failed to resolve hostname of remote IMAP 
server: %s -- retrying",
            fn, gai_strerror( gaierrnum ) );
        sleep( 15 );
    }
    else
    {
        break;
    }
    }





-- System Inf(rmation:
Debian Release: 5.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages imapproxy depends on:
ii  debconf [debconf-2.0]     1.5.24         Debian configuration management sy
ii  libc6                     2.7-16         GNU C Library: Shared libraries
ii  libncurses5               5.7+20081213-1 shared libraries for terminal hand
ii  libssl0.9.8               0.9.8g-14      SSL shared libraries
ii  libwrap0                  7.6.q-16       Wietse Venema's TCP wrappers libra
ii  lsb-base                  3.2-20         Linux Standard Base 3.2 init scrip

imapproxy recommends no packages.

imapproxy suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to