XMPP (XMPPHP) 会话无法启动



朋友们,我正在一个新的服务器上工作,起初,它看起来很好。eJabberd webadmin运行正常,我甚至可以通过该界面创建一个用户。

情况是,通常在我以前的服务器上运行的相同应用程序在等待会话启动时冻结,代码:

$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');

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

最新更新