#1263 net.connect should have greater control for when to consider a connection successful

Reporter Zash
Owner Nobody
Stars ★ (1)
  • Milestone-0.12
  • Priority-Medium
  • Status-Accepted
  • Type-Enhancement
  1. Zash on

    If net.connect is to replace mod_s2s/s2sout.lib there should be more control over when to consider an individual connection attempt as failed and proceed to the next IP address or SRV target. Currently the attempts stop once one connection is connected (when listeners.onconnect is called). XMPP s2s connections would benefit from delaying this until a stream has been opened by the remote, to be sure that it really is something that speaks XMPP there.

  2. Zash on

    https://hg.prosody.im/trunk/rev/64cfa396bb84 fixed something related to this, wherein listeners.onconnect was called for a failed connection attempt, halting net.connect and preventing it from continuing with other targets.

New comment

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