@@ -25,7 +25,8 @@ AsyncWebServerRequest::AsyncWebServerRequest(AsyncWebServer *s, AsyncClient *c)
2525 : _client(c), _server(s), _handler(NULL ), _response(NULL ), _onDisconnectfn(NULL ), _temp(), _parseState(PARSE_REQ_START), _version(0 ), _method(HTTP_ANY),
2626 _url(), _host(), _contentType(), _boundary(), _authorization(), _reqconntype(RCT_HTTP), _authMethod(AsyncAuthType::AUTH_NONE), _isMultipart(false ),
2727 _isPlainPost(false ), _expectingContinue(false ), _contentLength(0 ), _parsedLength(0 ), _multiParseState(0 ), _boundaryPosition(0 ), _itemStartIndex(0 ),
28- _itemSize(0 ), _itemName(), _itemFilename(), _itemType(), _itemValue(), _itemBuffer(0 ), _itemBufferIndex(0 ), _itemIsFile(false ), _tempObject(NULL ), _rx_timeout(ASYNCWEBSERVER_RX_TIMEOUT) {
28+ _itemSize(0 ), _itemName(), _itemFilename(), _itemType(), _itemValue(), _itemBuffer(0 ), _itemBufferIndex(0 ), _itemIsFile(false ), _tempObject(NULL ),
29+ _rx_timeout(ASYNCWEBSERVER_RX_TIMEOUT) {
2930 c->onError (
3031 [](void *r, AsyncClient *c, int8_t error) {
3132 (void )c;
@@ -729,7 +730,7 @@ AsyncWebServerRequestPtr AsyncWebServerRequest::pause() {
729730 if (_paused) {
730731 return _this;
731732 }
732- _rx_timeout = client ()->getRxTimeout (); // backup client rx timeout
733+ _rx_timeout = client ()->getRxTimeout (); // backup client rx timeout
733734 client ()->setRxTimeout (0 );
734735 // this shared ptr will hold the request pointer until it gets destroyed following a disconnect.
735736 // this is just used as a holder providing weak observers, so the deleter is a no-op.
@@ -937,7 +938,7 @@ void AsyncWebServerRequest::send(AsyncWebServerResponse *response) {
937938 // if request was paused, we need to send the response now
938939 if (_paused) {
939940 _paused = false ;
940- _client->setRxTimeout (_rx_timeout); // restore rx timeout
941+ _client->setRxTimeout (_rx_timeout); // restore rx timeout
941942 _send ();
942943 }
943944}
0 commit comments