forked from me-no-dev/ESPAsyncWebServer
Remove Rx timeout constraint in the request response stage, fix premature connection termination (#121)
This commit is contained in:
@@ -663,9 +663,11 @@ void AsyncWebServerRequest::send(AsyncWebServerResponse *response){
|
|||||||
_response = NULL;
|
_response = NULL;
|
||||||
send(500);
|
send(500);
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
|
_client->setRxTimeout(0);
|
||||||
_response->_respond(this);
|
_response->_respond(this);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
AsyncWebServerResponse * AsyncWebServerRequest::beginResponse(int code, const String& contentType, const String& content){
|
AsyncWebServerResponse * AsyncWebServerRequest::beginResponse(int code, const String& contentType, const String& content){
|
||||||
return new AsyncBasicResponse(code, contentType, content);
|
return new AsyncBasicResponse(code, contentType, content);
|
||||||
|
Reference in New Issue
Block a user