节节& Ejabberd:发送消息后重新验证的问题
我使用 Strope 连接方法通过外部身份验证连接到 ejabberd (2.1.6)。附加后一切正常,但是当我尝试向某个用户发送消息节时,该用户没有收到他的消息。消息节存储在数据库的假脱机表中。我不知道为什么消息不直接传递给用户。
我在 ejabberd 日志中看到的唯一一件事是,发送消息后,ejabberd 正在测试我通过外部 isuser 调用向其发送消息的用户,然后 ejabberd 重新对我进行身份验证。
我不知道重新验证是否正常,还是我做错了什么。
你们中有人以前遇到过此类问题吗?如果是这样,你是如何解决的?
Im using Strophe attach method to connect to ejabberd (2.1.6) with external authentication. Everything works fine after attaching, but when I'm trying to send a message stanza to some user, that user does not recieve his message. Message stanza is stored in spool table in database. I don't know why the message isnt delivered directly to the user.
The only thing I see in ejabberd log is that after sending message ejabberd is testing user to whom I sent the message with external isuser call, and after that ejabberd reauthenticates me.
I don't know if that reauthentication is normal thing or there's something out there that I do wrong.
Do any of you had this type of problem before? If so, how did you managed to solve it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是发件人正在重新验证吗?如果是这样,则您发送的 XML 格式可能不正确,并且服务器正在断开您的连接。
Is it the sender that is getting reauthenticated? If so, it's possible that you're sending XML that is not well-formed, and the server is disconnecting you.
看来我的应用程序和 htaccess 文件存在问题,如果资源不是目录或文件,它会将所有请求发送到 index.php,这会导致我的应用程序在存在不存在的图像时再次运行 GET 请求存在于服务器上,但包含在 html 中。
因为我在每个请求(ajax 除外)上连接到 ejabberd,所以都会进行重新身份验证。
比你的兴趣。
It appears that there was a problem with my app and htaccess file which sent all requests to index.php if the resource was not a directory or a file, which caused my app to once again run GET request if there was an image that did not exist on server, but was included in html.
And because I was connecting to ejabberd on every request (except for ajax) reauthentication was taking place.
Than you for your interest.