diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-05-08 03:29:23 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-05-08 03:29:23 +0000 |
commit | cf2ecb83b84f79f92723b9e4efeca420af68647d (patch) | |
tree | 3591dbd685a9470e7a690ff05947b95b28f7cb42 /src | |
parent | 14f83aec5549277e2efe1370dd1b1f76b1d8a1ca (diff) | |
download | tinyproxy-cf2ecb83b84f79f92723b9e4efeca420af68647d.tar.gz tinyproxy-cf2ecb83b84f79f92723b9e4efeca420af68647d.zip |
Removed the request logging in the tunnel because it breaks the tunnel
concept since it blocks waiting for information from the client before any
data from the remote is relayed.
Diffstat (limited to '')
-rw-r--r-- | src/reqs.c | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: reqs.c,v 1.70 2002-04-28 20:03:18 rjkaes Exp $ +/* $Id: reqs.c,v 1.71 2002-05-08 03:29:23 rjkaes Exp $ * * This is where all the work in tinyproxy is actually done. Incoming * connections have a new thread created for them. The thread then @@ -1107,6 +1107,19 @@ connect_to_upstream(struct conn_s *connptr, struct request_s *request) static int connect_to_tunnel(struct conn_s *connptr) { + +#if 0 + /* + * NOTE: This must be fixed + * + * Needed to remove this for right now since it breaks the semantics + * of the "tunnel" concept since the information from the remote host + * wasn't being sent until _after_ data was sent by the client. This + * is not correct since we should be sending the data regardless of + * who sent it first. + * + * I'll have to look into this for the next release. + */ char *request_buf; ssize_t len; int pos; @@ -1122,6 +1135,8 @@ connect_to_tunnel(struct conn_s *connptr) safefree(request_buf); } +#endif + log_message(LOG_INFO, "Redirecting to %s:%d", config.tunnel_name, config.tunnel_port); |