November 29, 2007
View a0553f4e1e

- io_wait support for write - io_wait: added io_watch_chg(..) - updated tcp code to the io_wait api changes

Andrei Pelinescu-Onciul authored on 29/11/2007 21:01:45
November 27, 2007
View 5c5cd7369d

- for tcp read processes, reuse the read fd for sending - keep a tcp send fd cache (experimental) (performance improvement)

Andrei Pelinescu-Onciul authored on 27/11/2007 21:05:32
View ccb7fda23b

- switched to much better tcp timers (performance increase especially with tesn of thousands of active tcp connections)

Andrei Pelinescu-Onciul authored on 27/11/2007 07:23:27
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
February 21, 2007
View 49d12f5fef

- fixed get_ticks* usage: only get_ticks_raw() must be used and everything must be converted to ticks. Thanks to Alfred E. Heggestad" <aeh@db.org> for spotting this.

Andrei Pelinescu-Onciul authored on 21/02/2007 01:42:25
February 20, 2007
View 1eee4c4ddb

- fixed wrong expire time calculation (not correct when tick oveflow, an timeout == some value before the overflow). This should fix the connection lives forever bug reported by Alfred E. Heggestad <aeh@db.org>.

Andrei Pelinescu-Onciul authored on 20/02/2007 18:20:15
February 16, 2007
View 301fa31498

- minor: nicer error handling

Andrei Pelinescu-Onciul authored on 16/02/2007 21:34:13
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
November 2, 2006
View be7401cc34

- tcp fixes/atomic_t switch

Andrei Pelinescu-Onciul authored on 02/11/2006 22:55:56
October 13, 2006
View 96227c65df

- added STUN keep-alive functionality in accordance with draft-ietf-behave-rfc3489bis-04.txt

Vladimir Marek authored on 13/10/2006 13:08:42
February 3, 2006
View 746f7674ae

- tcp children number is not anymore limited (was limited to 100) - tcp connection are passed to the tcp reader processes after some data is received on them and not immediately after accept(). This speeds up accepting lots of new connections. Old behaviour can be select by undef-ing TCP_PASS_NEW_CONNECTION_ON_DATA in tcp_main.c - lots of cleanups and small fixes - tsend_stream now support waiting forever (timeout==-1)

Andrei Pelinescu-Onciul authored on 03/02/2006 21:56:23
October 28, 2005
View 06c04bc2b1

- fixed tls on same port as tcp init problem (e.g. for -l 127.0.0.1:5080) - added a new tcp connection flag, set when the tcp connection is removed from the main pool - fixed tcp_read_req reported bytes count (necessary for certain types of poll stategies)

Andrei Pelinescu-Onciul authored on 28/10/2005 20:59:37
September 13, 2005
View b119d33de5

- cosmetic debug msg changes

Andrei Pelinescu-Onciul authored on 13/09/2005 13:52:11
July 5, 2005
View 3135b4bb72

- tcp receiver concerted to the new io_wait.h - epoll: close() not always removing the fd from set bug workarround - sigio_rt: reset O_ASYNC (sigio bug workarround) - more tcp related fixes

Andrei Pelinescu-Onciul authored on 05/07/2005 19:18:01
June 16, 2005
View 0ba367ec24

- tcp major changes part 1: support for >1024 connection, better io poll model (best poll method selected automatically, there is also an option to enforce it). So far support for epoll (linux >= 2.5.66), sigio + real time signals (linux), poll , select. kqueue (*bsd) and /dev/poll (solaris) comming soon. WARNING: this is still work in progress, the tcp reader part is still not converted to he new model (this means that while the tcp_main process supports > 1024 fds, the tcp childs don't), the main reason for leaving this out for now is debugging. Still to do: config options for poll_method (for now use -W method if you want to force one), config options for tcp timeouts a.s.o.

Andrei Pelinescu-Onciul authored on 16/06/2005 14:05:24