-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return (potentially) partial buffers on error.
In some cases, servers will response with an error, and then immediately close the connection. In those cases, we can still recover some information to be parsed for better error handling downstream. One notable example is rate limiting. The current behaviour makes it appear to be a connection issue (connection reset by peer). However, if we inspect the buffer, we notice a rate limiting message. If we in turn pass this to the whoisparser, we can treat it like other generic rate limiting errors, and act accordingly.
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 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