From b57f1bb63fa0a72aede3e3497462ef0a6ebdcfa1 Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Sat, 12 Jan 2013 02:59:16 +0100 Subject: [PATCH] mark connection as failed in case too big chunk was read --- lib/SimpleHttpClient/SimpleHttpClient.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/SimpleHttpClient/SimpleHttpClient.cpp b/lib/SimpleHttpClient/SimpleHttpClient.cpp index 8af5250d14..d6ee229b8b 100644 --- a/lib/SimpleHttpClient/SimpleHttpClient.cpp +++ b/lib/SimpleHttpClient/SimpleHttpClient.cpp @@ -50,7 +50,7 @@ namespace triagens { // ----------------------------------------------------------------------------- SimpleHttpClient::SimpleHttpClient (GeneralClientConnection* connection, double requestTimeout, bool warn) : - SimpleClient(connection, requestTimeout, warn), _result(0), _maxPacketSize(64 * 1024 * 1024) { + SimpleClient(connection, requestTimeout, warn), _result(0), _maxPacketSize(128 * 1024 * 1024) { } SimpleHttpClient::~SimpleHttpClient () { @@ -316,6 +316,7 @@ namespace triagens { // reset connection this->close(); + _state = DEAD; return false; }