summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-02-26 12:16:13 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-02-26 12:16:13 +0000
commitb78101bae0a5ae7038a15f23ea0706d01bd8bd99 (patch)
treebbb1fd9f6967dbab4b71f38ebf12d09de2441591 /usr.sbin
parenta0bd4344fd959e392078900e0b1a6e55c1dda369 (diff)
tweak flushing of unwritten bytes on http mode changes
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/hoststated/relay.c4
-rw-r--r--usr.sbin/relayd/relay.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/hoststated/relay.c b/usr.sbin/hoststated/relay.c
index 75edaadc39f..a8309756624 100644
--- a/usr.sbin/hoststated/relay.c
+++ b/usr.sbin/hoststated/relay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relay.c,v 1.9 2007/02/26 12:11:19 reyk Exp $ */
+/* $OpenBSD: relay.c,v 1.10 2007/02/26 12:16:12 reyk Exp $ */
/*
* Copyright (c) 2006, 2007 Reyk Floeter <reyk@openbsd.org>
@@ -1083,7 +1083,7 @@ next:
if (con->done)
goto done;
if (EVBUFFER_LENGTH(src))
- relay_bufferevent_write_buffer(cre->dst, src);
+ bev->readcb(bev, arg);
bufferevent_enable(bev, EV_READ);
return;
done:
diff --git a/usr.sbin/relayd/relay.c b/usr.sbin/relayd/relay.c
index 75edaadc39f..a8309756624 100644
--- a/usr.sbin/relayd/relay.c
+++ b/usr.sbin/relayd/relay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relay.c,v 1.9 2007/02/26 12:11:19 reyk Exp $ */
+/* $OpenBSD: relay.c,v 1.10 2007/02/26 12:16:12 reyk Exp $ */
/*
* Copyright (c) 2006, 2007 Reyk Floeter <reyk@openbsd.org>
@@ -1083,7 +1083,7 @@ next:
if (con->done)
goto done;
if (EVBUFFER_LENGTH(src))
- relay_bufferevent_write_buffer(cre->dst, src);
+ bev->readcb(bev, arg);
bufferevent_enable(bev, EV_READ);
return;
done: