-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-8852: Fix TcpNetServerConnectionFactory.run loop
Fixes: #8852 The `while (true) {` causes the thread to be blocked forever. The `stop()` waits on the `if (!executorService.awaitTermination(10, TimeUnit.SECONDS)) {` the whole time * Fix with the `while (isActive()) {` * Remove the `ConnectionFactoryTests.testEarlyCloseNet()` since we cannot reach expectations because of race condition between `start()` and `stop()` **Cherry-pick to `6.2.x` & `6.1.x`** (cherry picked from commit 0b60dfc)
- Loading branch information
1 parent
383361a
commit 0f402ca
Showing
2 changed files
with
3 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