-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
asynchronized send timeout checking (#460)
Fixes #458 ### Motivation For current producer, send timeout checking triggered by interval batch flush If connection closed, the producer eventloop will blocked to reconnect to broker, lead to batch flush and send timeout checking take no effective, java-client timer did effective in this situation ### Modifications Asynchronized send timeout by running in independent goroutine until producer closed, and without a pending queue lock ### Verifying this change - [x] Make sure that the change passes the CI checks. ### Others Without pending queue lock, the send timeout checking gets more complicated, I don't know if it's worth it for performance.
- Loading branch information
Showing
1 changed file
with
81 additions
and
37 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