1
0
Fork 0

mark connection as failed in case too big chunk was read

This commit is contained in:
Jan Steemann 2013-01-12 02:59:16 +01:00
parent 08a696a1a7
commit b57f1bb63f
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}