Esempio n. 1
0
 /**
  * @see Wrench\Socket.Socket::configure()
  *   Options include:
  *     - ssl_verify_peer       => boolean, whether to perform peer verification
  *                                 of SSL certificate used
  *     - ssl_allow_self_signed => boolean, whether ssl_verify_peer allows
  *                                 self-signed certs
  *     - timeout_connect       => int, seconds, default 2
  */
 protected function configure(array $options)
 {
     $options = array_merge(array('timeout_connect' => self::TIMEOUT_CONNECT, 'ssl_verify_peer' => false, 'ssl_allow_self_signed' => true), $options);
     parent::configure($options);
 }
Esempio n. 2
0
 /**
  * @see Wrench\Socket.Socket::configure()
  *   Options include:
  *     - backlog               => int, used to limit the number of outstanding
  *                                 connections in the socket's listen queue
  *     - ssl_cert_file         => string, server SSL certificate
  *                                 file location. File should contain
  *                                 certificate and private key
  *     - ssl_passphrase        => string, passphrase for the key
  *     - timeout_accept        => int, seconds, default 5
  */
 protected function configure(array $options)
 {
     $options = array_merge(array('backlog' => 50, 'ssl_cert_file' => null, 'ssl_passphrase' => null, 'ssl_allow_self_signed' => false, 'timeout_accept' => self::TIMEOUT_ACCEPT), $options);
     parent::configure($options);
 }