forked from netty/netty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HTTP/2 HelloWorld Client Example Bug
Motivation: The HTTP/2 helloworld client example has 2 bugs: 1. HttpResponseHandler has a map which is accessed from multiple threads, but the map is not thread safe. 2. Requests are flushed and maybe completely written and the responses may be received/processed by Netty before an element is inserted into the HttpResponseHandler map. This may result in an 'unexpected message' error even though the message has actually been sent. Modifications: - HttpResponseHandler should use a thread safe map - Http2Client shouldn't flush until entries are added to the HttpResponseHandler map Result: Fixes netty#6165.
- Loading branch information
1 parent
317a38d
commit 273c076
Showing
2 changed files
with
11 additions
and
9 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