Remove Rx timeout constraint in the request response stage, fix premature connection termination (#121)

This commit is contained in:
Zhenyu Wu 2017-03-05 13:15:25 -05:00 committed by Me No Dev
parent edf6c75f8c
commit fce6aad2c3
1 changed files with 3 additions and 1 deletions

View File

@ -663,8 +663,10 @@ void AsyncWebServerRequest::send(AsyncWebServerResponse *response){
_response = NULL;
send(500);
}
else
else {
_client->setRxTimeout(0);
_response->_respond(this);
}
}
AsyncWebServerResponse * AsyncWebServerRequest::beginResponse(int code, const String& contentType, const String& content){