mirror of
https://github.com/predis/predis.git
synced 2026-08-30 04:02:22 +00:00
prevent uncaught broken pipe error
This commit is contained in:
@@ -183,7 +183,7 @@ class StreamConnection extends AbstractConnection
|
||||
$socket = $this->getResource();
|
||||
|
||||
while (($length = strlen($buffer)) > 0) {
|
||||
$written = fwrite($socket, $buffer);
|
||||
$written = @fwrite($socket, $buffer);
|
||||
|
||||
if ($length === $written) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user