Browse Source

Merge pull request #18 from gamadoleo/patch-1

Update SocketTrait.php
tags/1.1.1 1.1.1
FeelancerE 6 years ago
committed by GitHub
parent
commit
31736bc231
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/SocketTrait.php

5
src/SocketTrait.php

@ -62,7 +62,10 @@ trait SocketTrait
if (false === $socket) {
throw new ClientException('Unable to establish socket session, ' . $this->_socket_err_str);
}
//Timeout read
stream_set_timeout($socket, $this->config('timeout'));
// Save socket to static variable
$this->setSocket($socket);
}

Loading…
Cancel
Save