FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

VV-3453 Decrease timeout to 250 ms to speed up FOTA · abelsensors/esp32_https_server@b47ad6f · GitHub

Repository navigation

Commit b47ad6f

Browse files
committed
VV-3453 Decrease timeout to 250 ms to speed up FOTA
1 parent 395c591 commit b47ad6f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/HTTPConnection.cpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,10 @@ bool HTTPConnection::canReadData() {
226226
FD_ZERO( &sockfds );
227227
FD_SET(_socket, &sockfds);
228228

229-
// We define an immediate timeout (return immediately, if there's no data)
229+
// Wait up to 250 ms for data to be available before returning false
230230
timeval timeout;
231-
timeout.tv_sec = 1;
232-
timeout.tv_usec = 0;
231+
timeout.tv_sec = 0;
232+
timeout.tv_usec = 250000;
233233

234234
// Check for input
235235
// As by 2017-12-14, it seems that FD_SETSIZE is defined as 0x40, but socket IDs now

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL