Error 503 after 10-15 XMPP messages

I wrote an XMPP daemon (using JAXL) to send and receive messages that seem to work fine, except for one problem.

I can successfully send from 10 to 15 messages to the users I want to send, and then after that any message I sent returns with <message type='error' ...><error code='503' type='cancel'></error></message>

I use Google talk servers to send from a Google Apps domain to another Google Apps domain.

Without posting all my code, anyone has any idea what might be causing this. The bit that puzzles me is that I can send 10 to 15 messages before it stops.

+4
source share
1 answer

It looks like you are pushing the speed limiter. From the HTTP specification :

10.5.4 503 Service unavailable

Currently, the server cannot process the request due to temporary overload or server maintenance. The implication is that this is a temporary condition that will be mitigated after some delays. If known, the delay length MAY be specified in the Retry-After header. If no relay is specified, the client MUST
handle the response as it would for a 500 response.

The good work that I would expect from most of Google would be correct in returning such an answer if it were a speed limit.

+3
source

Source: https://habr.com/ru/post/1399894/


All Articles