Commit 2bb64fe8 authored by chenchuanwen's avatar chenchuanwen

bridgeReload

parent 96533bc0
......@@ -32,19 +32,20 @@ function callback($instance,$channelName,$message){
}
pcntl_signal_dispatch();
if (Signal::get() == SIGHUP) {
global $redis;
global $conf;
global $redisPublishName;
$redis=new Redis();
$redis->connect($conf['host'], $conf['port']);
if(!empty($conf['password'])){
$redis->auth($conf['password']);
}
$redis->unsubscribe($redisPublishName);
Signal::reset();
}
}
$redis=new Redis();
$redis->connect($conf['host'], $conf['port']);
if(!empty($conf['password'])){
$redis->auth($conf['password']);
}
//ini_set('default_socket_timeout', -1);(所有长连接不超时)
$redis->setOption(Redis::OPT_READ_TIMEOUT, -1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment