~mdw
/
userv-utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Close tunnel on connrefused.
[userv-utils]
/
ipif
/
udptunnel
diff --git
a/ipif/udptunnel
b/ipif/udptunnel
index
7c977e1
..
7160cca
100755
(executable)
--- a/
ipif/udptunnel
+++ b/
ipif/udptunnel
@@
-245,5
+245,6
@@
for (;;) {
alarm($timeout) if $timeout;
}
}
alarm($timeout) if $timeout;
}
}
+ if ($! == ECONNREFUSED) { quit("tunnel closed at remote end"); }
$! == EAGAIN || warning("receive error: $!");
}
$! == EAGAIN || warning("receive error: $!");
}