Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 58f8732a892becc5c73ce7afd8b9ba1e652b3af9
      
https://github.com/OpenSIPS/opensips/commit/58f8732a892becc5c73ce7afd8b9ba1e652b3af9
  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


  Commit: 6e4586be88719e195b5c7a4ff87c59c9e2db2deb
      
https://github.com/OpenSIPS/opensips/commit/6e4586be88719e195b5c7a4ff87c59c9e2db2deb
  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


Compare: 
https://github.com/OpenSIPS/opensips/compare/76b41159e75f...6e4586be8871

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