aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorArlo Breault <arlolra@gmail.com>2014-09-23 12:22:28 -0400
committerNick Mathewson <nickm@torproject.org>2014-09-23 12:22:28 -0400
commit5ed5ac185bf6f30438af1638f30e04418ed27aff (patch)
tree5b2aaf194684fff456c1455b5c5752533a97b33f /src/or/directory.c
parent21d5dbd474d5dad10a2bfa800df078f7fdc8c40b (diff)
downloadtor-5ed5ac185bf6f30438af1638f30e04418ed27aff.tar.gz
tor-5ed5ac185bf6f30438af1638f30e04418ed27aff.zip
Send more descriptor requests per attempt when using tunneled connections
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 6fc5c206a1..7f272edaae 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -1261,7 +1261,8 @@ directory_send_command(dir_connection_t *conn,
return;
}
- if (strlen(proxystring) + strlen(url) >= 4096) {
+ /* warn in the non-tunneled case */
+ if (direct && (strlen(proxystring) + strlen(url) >= 4096)) {
log_warn(LD_BUG,
"Squid does not like URLs longer than 4095 bytes, and this "
"one is %d bytes long: %s%s",