-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix BrowserChannel close when is already closing (#1169)
WebSockets can take a while for closing and the `WebSocket.close` is called when status is `WS_CLOSING`, an error is thrown. This situation can happen when the driver is being closed while session still releasing connections back to the pool or after a receive timeout while closing the session. BrowserChannel should wait for the original close socket finish whenever a new close request happens to avoid this kind of error and provides a graceful shutdown for driver and session.
- Loading branch information
Showing
3 changed files
with
71 additions
and
22 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