-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incomplete flush in the sender when flushing the client
In some case, the sender 'sendLoop' would pop a buffer from its queue as we are calling its 'flush' method. Since the input queue is empty it would return instantly without waiting for the current buffer own by the sender to be sent. This would result in partial flush. We now synchronize 'flush' and 'sendLoop' to make sure flushing the client will send everything to the wire. The side effect of this is that the workers are lock for longer as we keep them locked when flushing the sender.
- Loading branch information
Showing
3 changed files
with
41 additions
and
16 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
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