mirror of https://gitee.com/bigwinds/arangodb
mark connection as failed in case too big chunk was read
This commit is contained in:
parent
08a696a1a7
commit
b57f1bb63f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue