Package: simpleproxy Version: 3.4-3 Severity: normal Each time a client connects to simpleproxy, there is a long delay, of several seconds, before simpleproxy connects to the remote port.
This apparently has to do with mdns. My /etc/nsswitch.conf is the default:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
strace -f shows the following, I had time to hit enter several times while
it was stuck waiting for nss_mdns.
[pid 9662] open("/lib/libnss_mdns4.so.2", O_RDONLY) = 5
[pid 9662] read(5,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\10\0\0004\0\0\0\230"...,
512) = 512
[pid 9662] fstat64(5, {st_mode=S_IFREG|0644, st_size=7552, ...}) = 0
[pid 9662] mmap2(NULL, 10464, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
5, 0) = 0xb7d3e000
[pid 9662] mmap2(0xb7d40000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x1) = 0xb7d40000
[pid 9662] close(5) = 0
[pid 9662] munmap(0xb7edf000, 105902) = 0
[pid 9662] socket(PF_FILE, SOCK_STREAM, 0) = 5
[pid 9662] fcntl64(5, F_GETFD) = 0
[pid 9662] fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
[pid 9662] connect(5, {sa_family=AF_FILE,
path="/var/run/avahi-daemon/socket"...}, 110) = 0
[pid 9662] fcntl64(5, F_GETFL) = 0x2 (flags O_RDWR)
[pid 9662] fstat64(5, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
[pid 9662] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7ef8000
[pid 9662] _llseek(5, 0, 0xbfd15be0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
[pid 9662] write(5, "RESOLVE-ADDRESS 2.0.134.139\n"..., 28) = 28
[pid 9662] read(5,
"-15 Timeout reached\n"..., 4096) = 20
[pid 9662] close(5) = 0
[pid 9662] munmap(0xb7ef8000, 4096) = 0
[pid 9662] write(2, "simpleproxy[9662]:"..., 18) = 18
[pid 9662] write(2, "Connect from 127.0.0.1 (localhost"..., 53) = 53
[pid 9662] write(2, "\n"..., 1) = 1
[pid 9662] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
I don't see this delay if I use redir, nor do I see other delays looking up
hostnames or any avahi-related problems. I can reproduce the delay on another
machine that has nss-mdns installed.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages simpleproxy depends on:
ii libc6 2.7-16 GNU C Library: Shared libraries
simpleproxy recommends no packages.
simpleproxy suggests no packages.
-- no debconf information
--
see shy jo
signature.asc
Description: Digital signature

