#974 mod_smacks causes two TCP segments to be sent

Reporter Ge0rG
Owner Nobody
Created
Updated
Stars ★★ (2)
Tags
  • Type-Defect
  • Status-New
  • Priority-Medium
  • Component-Community
  1. Ge0rG on

    Whenever mod_smacks issues an <r/> over a session, it will do session.send right after the stanza that caused the transmission (every stanza by default) has been sent. That means, the transmission goes like that: ``` --> stanza(s) <-- ack --> <r/> (Nagle's algorithm makes the TCP stack wait for the ack until sending out the next incomplete segment) <-- ack <-- <a/> --> ack ``` It would be great if prosody could piggy-back the <r/> on the stanza(s) segment, to reduce the number of round trips and the battery drain on mobile clients. Thanks.

  2. Zash on

    Changes
    • tags Component-Community
  3. Zash on

    Tagging issue as affecting a community module, not officially supported by the Prosody team.

    Changes
    • tags

New comment

Not published. Used for spam prevention and optional update notifications.