Package: fair
Version: 0.5.1-3.1
Severity: important
Tags: upstream patch
eof on send stream caused termination of receive stream, which is wrong.
shutdown code in upstream source is apparently mixed up.
following patch solves the problem.
--- fair-0.5.1.orig/src/relay.c
+++ fair-0.5.1/src/relay.c
@@ -122,9 +122,9 @@
if(!rl->from)
return relay_delete(rl);
assert(rl->src);
- shutdown(rl->src->fd, SHUT_RD);
+ shutdown(rl->src->fd, SHUT_WR);
assert(rl->dst);
- shutdown(rl->dst->fd, SHUT_WR);
+ shutdown(rl->dst->fd, SHUT_RD);
assert(rl->to);
fdcopy_delete(rl->to);
rl->to = NULL;
@@ -143,9 +143,9 @@
if(!rl->to)
return relay_delete(rl);
assert(rl->dst);
- shutdown(rl->dst->fd, SHUT_RD);
+ shutdown(rl->dst->fd, SHUT_WR);
assert(rl->src);
- shutdown(rl->src->fd, SHUT_WR);
+ shutdown(rl->src->fd, SHUT_RD);
assert(rl->from);
fdcopy_delete(rl->from);
rl->from = NULL;
-- System Information:
Debian Release: 6.0.3
APT prefers stable
APT policy: (990, 'stable'), (500, 'oldstable'), (500, 'unstable'), (500,
'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages fair depends on:
ii libavl1 0.3.5-3 AVL tree manipulation library - ru
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
fair recommends no packages.
fair suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]