From 83d4cd15c12c31c41d0c37656edcc12beb3a1f77 Mon Sep 17 00:00:00 2001 From: Christos Tsantilas Date: Thu, 28 Apr 2011 22:32:43 +0300 Subject: [PATCH] Bug 3205: SSL-bump is broken in trunk The bug appeared after commit with revno:11364 which fixes the 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 ad48c40d4b..755ac29709 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -3572,7 +3572,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.3