Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checks and delay before reading header infos
- Added some checks that stream variable is not NULL before using it (just to make sure) - To avoid header-read errors that happened sometimes implement a check for available data with a maximum timeout of 1000ms (configurable via defines in header file). With my default settings we wait 20 ms and then check again if at least 17 characters are available to read (which should be a normal HTTP-header first line). This is done at max 50 times before the read is tried
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters