0

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

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

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

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

确认:

  • 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');
4

1 回答 1

0

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

于 2016-08-29T19:09:37.047 回答