-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bias HTTP detection towards availability
1b97e57 changed HTTP detection to bias towards correctness. Instead of performing a single read, the HTTP detection module reads data until a newline is encountered so that a dispositive determination can be made. Practically, this causes many non-HTTP protocols to fail with a connection timeout because a newline is never transmitted. This change reverts the HTTP detection logic to perform a single read and to use that data to make a determination. A minimum of 14B is required to handle a connection as HTTP.
- Loading branch information
Showing
1 changed file
with
72 additions
and
114 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