-
Notifications
You must be signed in to change notification settings - Fork 831
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add fixes for socket shutdown (#20877)
* Fix SSL connection retry attempts for cluster-internal connections * Fix connection retry attempts for cluster-internal TLS connections that ran into the 15 seconds timeout during the connection establishing attempt. In this case, the low-level socket was repurposed, but not reset properly. This could leave the connection in an improper state and lead to callbacks for some requests to not being called as expected. * apply some review comments * check if connection was aborted * revert change to cmakelists for tests * disable socket rearming for now * simplify PR * remove retry entirely * fix arangosh build * further fixes for socket shutdown * fix ownership issue * fix compiler warning * simplify PR * reset timer earlier * make sure callback is always called * fix timer cancelation race * fixes for socket shutdown * remove invalid assertion * Fix: check if socket is open in connect callback It is possible that the timeout went off right before and has closed the socket before the callback was executed with a success code. * fix compilation * add tests * increase connection timeout * fix spurious test failure --------- Co-authored-by: Vadim Kondratev <vadim@arangodb.com> Co-authored-by: mpoeter <manuel@arangodb.com>
- Loading branch information
1 parent
4c24422
commit 54dfe12
Showing
15 changed files
with
454 additions
and
140 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
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
Oops, something went wrong.