8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6cf1aed + 6bbc5a8 commit 3181cb3Copy full SHA for 3181cb3
src/HTTPConnection.cpp
@@ -211,8 +211,14 @@ int HTTPConnection::updateBuffer() {
211
closeConnection();
212
return -1;
213
}
214
-
215
- } // data pending
+ // 6F9E This function can be called in a loop when discarding the request body in HTTPRequest::discardRequestBody.
+ // When the connection for whatever reason is unable to receive more data, the application essentially gets
216
+ // stuck in an infinite while loop. This extra timeout check prevents this from occurring.
217
+ } else if (isTimeoutExceeded()) {
218
+ HTTPS_LOGI("Connection timeout. FID=%d", _socket);
219
+ closeConnection();
220
+ return -1;
221
+ }
222
223
} // buffer can read more
224
0 commit comments