Branch: refs/heads/4.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 91a381c3e614b2ab5261d942c688bab1fccb17e2
      
https://github.com/OpenSIPS/opensips/commit/91a381c3e614b2ab5261d942c688bab1fccb17e2
  Author: Jasper Hafkenscheid <[email protected]>
  Date:   2026-09-29 (Tue, 29 Sep 2026)

  Changed paths:
    M modules/proto_tls/proto_tls.c

  Log Message:
  -----------
  proto_tls: report real ports when the write is queued on async connect

proto_tls_send() only updated last_outgoing_tcp_id and
send_sock->last_real_ports on the send_it path. When tls_async is
enabled and no connection exists yet, the first message is attached as a
write chunk to the pending connection and the function returns via
con_release, leaving both stale from a previous send on that listener.

The tracer module reads them when building the trace, so the very first
request over a new outbound TLS connection (typically the INVITE) is
logged with the ports and connection id of an unrelated peer. Every
later message on that connection goes through send_it and is correct.

proto_tcp already does this on both of its async paths.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Close: #4226
(cherry picked from commit 58f8732a892becc5c73ce7afd8b9ba1e652b3af9)


  Commit: 96dd2de16dc1ddf28828c888329e3202b7f752f7
      
https://github.com/OpenSIPS/opensips/commit/96dd2de16dc1ddf28828c888329e3202b7f752f7
  Author: Razvan Crainea <[email protected]>
  Date:   2026-09-29 (Tue, 29 Sep 2026)

  Changed paths:
    M forward.h

  Log Message:
  -----------
  core: reset TCP tracing state before each send

Clear the per-process connection ID and per-socket real ports before invoking a 
TCP-based transport, so failed sends fall back to their intended destination 
instead of inheriting an unrelated connection.

Thanks to Richard Robson for reporting this issue.

Closes #4274

(cherry picked from commit 6e4586be88719e195b5c7a4ff87c59c9e2db2deb)


Compare: 
https://github.com/OpenSIPS/opensips/compare/a841131d18af...96dd2de16dc1

To unsubscribe from these emails, change your notification settings at 
https://github.com/OpenSIPS/opensips/settings/notifications

_______________________________________________
Devel mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to