Package: redir
Version: 2.2.1-8
Severity: normal

If redir is interrupted while attempting to open a tcp connection to a
server that is not currently reachable, the following can happen:

Leaving main copyloop
copyloop - sockets shutdown and closed
copyloop - connect time:       20 seconds
copyloop - transfer in:     29780 bytes
copyloop - transfer out:      732 bytes
peer IP is 127.0.0.1
peer socket is 47203
top of accept loop
target: connect: Connection refused
peer IP is 127.0.0.1
peer socket is 47205
target: connect: Connection refused
top of accept loop
^C
[EMAIL PROTECTED]:~>redir --lport 6604 --cport 6600 --caddr localhost --debug
target is localhost
target IP address is 127.0.0.1
target port is 6600
local IP is default
server: bind: Address already in use

After a minute or so, the lport frees up, and redir can be started again.

IIRC, this kind of problem can be avoided by. Possibly by using SO_LINGER? I 
forget..

FWIW, simpleproxy does not have this problem.

-- 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 redir depends on:
ii  libc6                         2.7-16     GNU C Library: Shared libraries
ii  libwrap0                      7.6.q-16   Wietse Venema's TCP wrappers libra

redir recommends no packages.

redir suggests no packages.

-- no debconf information

-- 
see shy jo



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to