-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid ECONNRESET errors on idle timeout (#162947)
### Summary Address #82002 and #75440 I think I found a breakthrough for this flaky behavior. I run the integration test 800x locally, with different settings: Adjusting both the delayed emission (send 1 char at a time), and the socket idle timeout to have exacly the same value (e.g. `10 millis`), I managed to get the `ECONNRESET` 100% of the times. Thus, IIUC the ECONNRESET happens when the client tries to send a character over the socket and at the same time the server responds with the idle timeout. Adjusting the values so that the delay between character emissions is significantly larger than the idle timeout, e.g. 20 vs 5, I get `socket hang up` 100% of the times. Flaky Test Runner Pipeline - 300x 🟢 https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4030
- Loading branch information
1 parent
0e904b8
commit 721d68a
Showing
3 changed files
with
20 additions
and
42 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