[OpenSIPS-Devel] [OpenSIPS/opensips] 1a9361: TCP connection lookup: Add matching by transport

Liviu Chircu liviu at opensips.org
Tue May 24 19:25:54 CEST 2016


  Branch: refs/heads/2.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 1a9361352fa7a1725b4ba9813f8be2b35febc516
      https://github.com/OpenSIPS/opensips/commit/1a9361352fa7a1725b4ba9813f8be2b35febc516
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2016-05-24 (Tue, 24 May 2016)

  Changed paths:
    M modules/proto_bin/proto_bin.c
    M modules/proto_hep/proto_hep.c
    M modules/proto_tls/proto_tls.c
    M modules/proto_ws/proto_ws.c
    M modules/proto_wss/proto_wss.c
    M modules/tls_mgm/tls_mgm.c
    M modules/tls_mgm/tls_select.c
    M net/net_tcp.c
    M net/net_tcp.h
    M net/proto_tcp/proto_tcp.c

  Log Message:
  -----------
  TCP connection lookup: Add matching by transport

The fact that all currently supported TCP-oriented protocols have different
standard ports is not an excuse for not including the transport into the
match condition (i.e. dest IP address + dest port + dest transport).

This may very well prevent issues with messages being sent out over the
wrong TCP connection in a number of scenarios where we employ TCP connection
reusage over both plain TCP and TLS with a Proxy that specifies the same port
in the topmost Via header when it establishes each of the two connections.

(cherry picked from commit 13970bb65253f1b35156466c6f514a4c520d8893)




More information about the Devel mailing list