-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix possible data loss after goaway received
All frames are processed by workers running in goroutines. If 1 worker's queue is backed up with data frames and another worker receives and processes a goaway frame, it's a race as to whether or not the workers will be able to process the pending data frames before the streams are removed from the streams map. This fix processes the goaway frame synchronously in Serve() instead of in a worker goroutine. We now wait for all the workers to drain their frame queues before tearing down the streams.
- Loading branch information
Andy Goldstein
committed
Sep 2, 2015
1 parent
b2c3287
commit dc558d3
Showing
1 changed file
with
22 additions
and
8 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