Explorar o código

close server if parsing of header field failed

Seen in #828011 if we fail to parse a header field like Last-Modified we
end up interpreting the data as response header for coming requests in
case we don't rotate to a new server in DNS rotation.
David Kalnischkies %!s(int64=10) %!d(string=hai) anos
pai
achega
cc0a4c82b3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      methods/server.cc

+ 1 - 0
methods/server.cc

@@ -556,6 +556,7 @@ int ServerMethod::Loop()
 	 {
 	    _error->Error(_("Bad header data"));
 	    Fail(true);
+	    Server->Close();
 	    RotateDNS();
 	    continue;
 	 }