strophe / libstrophe

A simple, lightweight C library for writing XMPP clients
http://strophe.im/libstrophe
Other
401 stars 163 forks source link

Continuous Bosh Request #210

Closed itsaboutcode closed 1 year ago

itsaboutcode commented 2 years ago

We are seeing continuous requests to bosh with this payload

<body rid="375773228" sid="a63c9996f13549a85ae2cd04c446cc16c261e95b" xmlns="http://jabber.org/protocol/httpbind"><a h="252" xmlns="urn:xmpp:sm:3"/></body>

Not sure what's causing it but it's making our application slow. Any idea why it's making these requests and how we can stop it?

nosnilmot commented 2 years ago

<a xmlns='urn:xmpp:sm:3' h='N'/> is an acknowledgement sent as part of XEP-0198: Stream Management. Is the N changing? in your example it is 252, it would be increasing if other stanzas are being handled.

Are there continuous <r xmlns='urn:xmpp:sm:3'/> being received from the server?

This could be normal behaiviour of XEP-0198, or it could be a bug, depending on the answers above, but if you just want to disable stream management you can set flag XMPP_CONN_FLAG_DISABLE_SM using xmpp_conn_set_flags().

sjaeckel commented 1 year ago

I'm closing this as there was no action for too long. Please re-open if you have further questions/comments.