浏览代码

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 10 年之前
父节点
当前提交
cc0a4c82b3
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;
 	 }