-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix connection broken detection (on ssl sockets)
The previous checks within `Connection::readFrame` often failed for ssl connections on AWS. This was caused by the fact that `stream_select` will fail to reliable determine if there is already processable data on the encrypted stream. It returns true while the stream is not yet ready to be consumed, which causes `fread` to return an empty string, which was considered as failure before. Related to #115 BC: As `fread` also returns an empty string for sockets that are broken, we now need to make use of heartbeats to determine the status of the connection. `HeartbeatEmitter` was adapted, so that a failing alive notification now also causes an exception. In addition `ServerAliveObserver` was added, which simplifies the usage of server side triggered heartbeats to determine if the connection is still stable.
- Loading branch information
Showing
17 changed files
with
1,068 additions
and
221 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
Oops, something went wrong.