Browse Source

Update SocketTrait.php

A suggestion/question would not be interesting to define a
stream_set_timeout (), since the timeout set when opening the socket connection is for connection establishment only and not for read data?
pull/18/head
gamadoleo 6 years ago
committed by GitHub
parent
commit
5d07048117
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/SocketTrait.php

3
src/SocketTrait.php

@ -63,6 +63,9 @@ trait SocketTrait
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