summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/parse.y
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-11-19 14:41:06 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-11-19 14:41:06 +0000
commitc42b469a54c61a3d1eefce70aa16636281d6d6d7 (patch)
tree57d2ede61d3383926cf146702a935a1786a89729 /usr.sbin/relayd/parse.y
parenta6471eb3134ec90b827b73c848a7258614558a1e (diff)
always enable "late connect" relay mode if an "expect" or "filter"
action has been specified for the protocol. late connect mode first reads the complete request (HTTP header) before opening the inbound connection instead of relaying it line-by-line.
Diffstat (limited to 'usr.sbin/relayd/parse.y')
-rw-r--r--usr.sbin/relayd/parse.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/relayd/parse.y b/usr.sbin/relayd/parse.y
index d32f2c0e868..01495ccc16d 100644
--- a/usr.sbin/relayd/parse.y
+++ b/usr.sbin/relayd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.80 2007/11/15 17:02:01 pyr Exp $ */
+/* $OpenBSD: parse.y,v 1.81 2007/11/19 14:41:05 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -839,6 +839,7 @@ protonode : nodetype APPEND STRING TO STRING marked {
fatal("out of memory");
free($5);
free($3);
+ proto->lateconnect++;
}
| nodetype FILTER STRING FROM STRING mark {
node.action = NODE_ACTION_FILTER;
@@ -848,6 +849,7 @@ protonode : nodetype APPEND STRING TO STRING marked {
fatal("out of memory");
free($5);
free($3);
+ proto->lateconnect++;
}
| nodetype HASH STRING marked {
node.action = NODE_ACTION_HASH;