From d092542cd56f695ead332b79f8331542dd4927ff Mon Sep 17 00:00:00 2001 From: Christos Tsantilas Date: Fri, 6 May 2011 21:16:27 -0600 Subject: [PATCH] Bug 3205: SSL-bump starts then hangs The bug appeared after commit with revno:11364 which fixes Bug 3192. In the case of SSL-bumped connections the ConnStateData::flags.readMore flag must be reset (set to true) when we are switching to HTTPs, because we have to read the new unencrypted HTTP request. This patch reset this flag in ConnStateData::switchToHttps method. --- src/client_side.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client_side.cc b/src/client_side.cc index 6e98d722cf..7c842f28c1 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -3493,7 +3493,8 @@ ConnStateData::switchToHttps(const char *host) assert(areAllContextsForThisConnection()); freeAllContexts(); //currentobject->connIsFinished(); - + // We are going to read new request + flags.readMore = true; debugs(33, 5, HERE << "converting FD " << fd << " to SSL"); return getSslContextStart(); -- 2.47.2