gpt4 book ai didi

php - 10 到 15 条 XMPP 消息后出现错误 503

转载 作者:可可西里 更新时间:2023-10-31 23:24:08 27 4
gpt4 key购买 nike

我已经编写了一个 XMPP 守护程序(使用 JAXL)来发送和接收消息,除了一个问题外,它似乎工作正常。

我可以成功地向我想发送给的用户发送 10 到 15 条消息,然后我发送的任何消息都会返回 <message type='error' ...><error code='503' type='cancel'></error></message>

我正在使用 Google 的谈话服务器从一个 Google Apps 域发送到另一个 Google Apps 域。

在不发布我的所有代码的情况下,是否有人知道可能导致此问题的原因。让我感到困惑的一点是,我可以在它停止之前先发送 10 到 15 条消息。

最佳答案

听起来您好像遇到了限速器。来自HTTP spec :

10.5.4 503 Service Unavailable

The server is currently unable to handle the request due to a
temporary overloading or maintenance of the server. The implication
is that this is a temporary condition which will be alleviated after
some delay. If known, the length of the delay MAY be indicated in a
Retry-After header. If no Retry-After is given, the client SHOULD
handle the response as it would for a 500 response.

一个行为良好的服务,我希望谷歌的大部分服务,如果它是速率限制的东西,在返回这样的响应时是正确的。

关于php - 10 到 15 条 XMPP 消息后出现错误 503,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9575248/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com