Performance for large stanzas #268
singpolyma
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Right now if there is a stanza larger than the configured stophe buffer size, or regardless of the buffer size but larger than a single TLS record (often 8K) then
xmpp_run_oncewill process only the first part of this stanza. When integrating with an event loop, we then hand off to that event loop to do any work it may have, before coming back around again toxmpp_run_once.One solution could be to have
xmpp_run_oncereturn an indication of if there is still more that could be done to the caller. Unfortunately it's hard to even tell if something could be done in many cases. For now I am trying out this:this works very well and makes sure the whole stanza (or even several stanzas if they arrived together) is processed before continuing. However I suppose this could in theory create starvation if the other side is sending data nonstop?
Beta Was this translation helpful? Give feedback.
All reactions