伙计们,我正在一台新服务器上工作,一开始,一切都很好。eJabberd webadmin运行正常,我甚至可以通过该界面创建一个用户。
情况是,通常运行在前面服务器上的应用程序在等待会话启动时会冻结,代码如下:
$this->lnk->processUntil('session_start');$this->lnk->connect();运行良好,但似乎无法设置会话。有什么建议,我应该先去哪里或什么地方看看吗?
ACKs:
以下是整个代码:
$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');发布于 2016-08-29 19:09:37
这个问题是由$this->lnk->useEncryption(true);引起的。由于我的新服务器没有正确的SSL/TLS设置,这一行导致代码冻结。可能的解决方案是禁用加密和调整SSL/TLS凭据。
https://stackoverflow.com/questions/39017914
复制相似问题