Closed
Description
SecureStream is hard coded into StreamEncryption and there is no easy ability to replace it with extended class.
Reason for replacement: I need to catch and correctly proceed exception " stream_get_contents(): SSL: Connection reset by peer " in method SecureStream::handleData();
Or would be nice updte code with correct catch;
try {
$this->handleData($stream);
} catch (\Exception $e) {
$this->emit('error', array($e, $this));
}
\React\Stream\Stream