September 5, 2007
View 22f062587d

- tcp add alias policy changes (experimental): now new aliases are added even if matching aliases for different connections exists. Until now an existing alias pointing to some other connection would trigger an error, the reason being that someone could try to "steal" a connection. However this turned out to affect also normal usage, like UAs behind nats that change the ip, or rebooted UAs (that didn't have a chance to close the tcp connection).

Andrei Pelinescu-Onciul authored on 05/09/2007 17:20:35
August 27, 2007
View 2aa5c1f7d7

- split init_sock_opt into init_sock_opt, called for new sockets (e.g. on connect) and init_sock_opt_accept() called only for sockets created as a result of an accept and which inherit the options from the "parent" listening socket (which the O_NONBLOCK exception for which no behaviour is specified and which is seems to be inherithed on BSDs and solaris, but not on linux). - init_sock_opt sets also SO_REUSEADDR

Andrei Pelinescu-Onciul authored on 27/08/2007 21:48:56
August 23, 2007
View a6357e2582

- detect INADDR_ANY ( or ::) listen addresses - basic tcp support for INADDR_ANY

Andrei Pelinescu-Onciul authored on 23/08/2007 20:43:58
August 1, 2007
View a288ee348d

- support for setting the source address in tcp_send() and tcpconn_get() (should allow for a better tcp force_send_socket() in the future) - add multiple aliases for each connection, to cover all the search possiblities: (dst_ip, dst_port), (local_ip, dst_ip, dst_port), (local_ip, local_port, dst_ip, dst_port). - improved connection hash function

Andrei Pelinescu-Onciul authored on 01/08/2007 00:05:40
July 25, 2007
View 205fcb02c0

- tcpconn_connect takes a new optional param.: the address to bind the new socket on - tcpconn_new takes a new param: the local socket address - tcp_use_source_ipv[46] cleanup - MAX_TCP_CON_LIFETIME fix

Andrei Pelinescu-Onciul authored on 25/07/2007 19:40:32
July 4, 2007
View 3e99928136

- added register_fds(no), used to register the maximum numbers of fds opened by a module (on a per process basis). Needed for code that needs to know the maximum possible open fd number (like the tcp code). - added get_max_open_fds()

Andrei Pelinescu-Onciul authored on 04/07/2007 17:27:33
May 30, 2007
View 761bd3097e

Add two new config variables to set source IP on outbound TCP connections. As Jan stated this is useful for HA setups with virtual IPs.

Hendrik Scholz authored on 30/05/2007 12:48:24
February 20, 2007
View 895cb2af9e

- make tar doesn't exclude tls*, but instead tls/* - don't append -tls to the version number unless CORE_TLS is used (there's enough information in the flags to see if support for the tls modules is enabled)

Andrei Pelinescu-Onciul authored on 20/02/2007 19:41:14
February 10, 2007
View 6c53d41a09

- tls hooks support: special tls hooks added in core that allow a module or core part to provide a tls implementation. Support for the old in-core tls compile options is preserved (but one can compile with either tls hooks support or tls-in-core support, not with both in the same time). Changes were kept to a minimum. - Makefiles: make TLS=1 deprecated, use instead make TLS_HOOKS=1 or make CORE_TLS=1 (if in-core tls support is needed). Added TLS_EXTRA_LIBS (e.g. make CORE_TLS=1 TLS_EXTRA_LIBS="-lz -lkrb5").

Andrei Pelinescu-Onciul authored on 10/02/2007 18:52:48
January 27, 2007
View b8116f0486

- minor tcp fix: some bug detection code (which should never be triggered) is more robust now

Andrei Pelinescu-Onciul authored on 27/01/2007 08:01:07
November 4, 2006
View d8b11bbcd5

- tcp fixes: tcpconn_timeout(); expire now timeout; switched to "raw" ticks (the conversion to s was plagued by truncation errors => in some corner cases one could end up with tcp connections that never expire) - if tcp_con_lifetime is set to a negative value, use the maximum possible value instead

Andrei Pelinescu-Onciul authored on 04/11/2006 15:55:08
November 2, 2006
View c2518f5420

- more reliable tcp shutdown: force unlock the tcp lock in case some terminated process did hold it

Andrei Pelinescu-Onciul authored on 02/11/2006 23:35:32
View be7401cc34

- tcp fixes/atomic_t switch

Andrei Pelinescu-Onciul authored on 02/11/2006 22:55:56
October 2, 2006
View 144c394f42

- fork_process & fork_tcp_process fixes - reverted to the old fork()-in-parallel behaviour (uncomment FORK_DONT_WAIT for the "serial" fork()).

Andrei Pelinescu-Onciul authored on 02/10/2006 17:29:23
September 19, 2006
View 37209e1421

- applied patch from Dragos Vingarzan <> which moves all the forking part into 2 functions in pt.c (fork_process and fork_tcp_process). - added PROC_NOCHLDINIT rank value for Dragos's fork_process (if this value is used as child_id/rank_value the mod_child functions will not be called) - added register_procs(processes_no), used from mod_init when a module knows that it will fork some children (replaces the old process_count++ / the patch's estimated_process_count++) - added get_max_procs(): returns the maximum (estimated) number of processes

Andrei Pelinescu-Onciul authored on 19/09/2006 16:13:27