2016-08-18 100 views
0

研究员我正在一个新的服务器中工作,首先,它看起来都很好。 eJabberd webadmin运行正常,我甚至可以通过该界面创建用户。XMPP(XMPPHP)会话将不会启动

的情况是,通常跑我前面的服务器上的同一个应用程序冻结在等待会议开始,代码:

$this->lnk->processUntil('session_start'); 

$this->lnk->connect();工作正常,但似乎会话”不会被设置。有关我应该去哪里或什么的任何建议请先看看?

的ACK:

  • 的XMPP应用程序已经设置相同的方式比在旧的服务器。

这里是整个代码:

$this->lnk = new XMPPHP_XMPP($this->config['host'], 
          $this->config['port'], 
          $this->config['username'], 
          $this->config['password'], 
          $this->config['service'], 
          $this->config['domain'], 
          $printlog = false, 
          $loglevel = XMPPHP_Log::LEVEL_VERBOSE); 

$this->lnk->useEncryption(true); 

$this->lnk->connect(); 

$this->lnk->processUntil('session_start'); 

回答

0

问题是由$this->lnk->useEncryption(true);引起的。由于我的新服务器没有正确的SSL/TLS设置,因此此行导致代码冻结。 可能的解决方法是禁用加密并调整您的SSL/TLS凭据。