sip-router
13 years ago- duplicate definition of USE_DST_BLACKLIST is removed
Miklos Tirpak [Fri, 31 Aug 2007 08:12:08 +0000 (08:12 +0000)]
- duplicate definition of USE_DST_BLACKLIST is removed
- typos in USE_DST_BLACKLIST_STATS are corrected

13 years agointegers values were fixed-up as short by mistake
Miklos Tirpak [Fri, 31 Aug 2007 08:07:40 +0000 (08:07 +0000)]
integers values were fixed-up as short by mistake

13 years ago- disable by default path MTU discovery on linux (unfortunately on linux path
Andrei Pelinescu-Onciul [Mon, 27 Aug 2007 23:05:59 +0000 (23:05 +0000)]
- disable by default path MTU discovery on linux (unfortunately on linux path
  MTU discovery is enabled by default even for udp, which produces packets
   with the DF flag set). It can be re-enabled using  the new pmtu_discovery
   config option.
  Patch from Hendrik Scholz (hscholz).
  Closes SER-275.

13 years ago- split init_sock_opt into init_sock_opt, called for new sockets
Andrei Pelinescu-Onciul [Mon, 27 Aug 2007 21:48:56 +0000 (21:48 +0000)]
- 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

13 years agoadded index to make usrloc expires fast
Jiri Kuthan [Mon, 27 Aug 2007 17:30:46 +0000 (17:30 +0000)]
added index to make usrloc expires fast

13 years agoput ifdef reports unreported before
Jiri Kuthan [Sun, 26 Aug 2007 08:19:54 +0000 (08:19 +0000)]
put ifdef reports unreported before

13 years agois_2rr moved into rr parser to allow its usage from other modules
Vaclav Kubart [Fri, 24 Aug 2007 08:29:04 +0000 (08:29 +0000)]
is_2rr moved into rr parser to allow its usage from other modules

13 years ago- detect INADDR_ANY (0.0.0.0 or ::) listen addresses
Andrei Pelinescu-Onciul [Thu, 23 Aug 2007 20:43:58 +0000 (20:43 +0000)]
- detect INADDR_ANY  (0.0.0.0 or ::) listen addresses
- basic tcp support for INADDR_ANY

13 years agodns_get_server_state() implemented which returns the state of the DNS servers
Miklos Tirpak [Wed, 22 Aug 2007 15:10:13 +0000 (15:10 +0000)]
dns_get_server_state() implemented which returns the state of the DNS servers

13 years agodns_cache_del_nonexp configuration option is introduced: it allows deletion of non...
Miklos Tirpak [Tue, 21 Aug 2007 11:08:15 +0000 (11:08 +0000)]
dns_cache_del_nonexp configuration option is introduced: it allows deletion of non-expired records from the DNS cache
when the cache becomes full. Disabled by default.

13 years ago- improved chances to catch doubles frees on joined fragments
Andrei Pelinescu-Onciul [Mon, 20 Aug 2007 11:09:13 +0000 (11:09 +0000)]
- improved chances to catch doubles frees on joined fragments
 (QM_JOIN_FREE and QM_DEBUG have to be defined).
 Patch from Michal Matyska <michal@iptel.org>.
Closes SER-296.

13 years ago- applied Michal Matyska <michal@iptel.org> patch: fixes sercmd/libbinrpc
Andrei Pelinescu-Onciul [Mon, 20 Aug 2007 10:36:37 +0000 (10:36 +0000)]
- applied Michal Matyska <michal@iptel.org> patch: fixes sercmd/libbinrpc
getting stuck in infinite loop on EOF (ser shutdown).
Closes SER-295.

13 years agoFIX - if hooks are defined then increment hit counter only when a destination is...
Vladimir Marek [Sat, 18 Aug 2007 19:40:59 +0000 (19:40 +0000)]
FIX - if hooks are defined then increment hit counter only when a destination is added into blacklist

13 years ago- write detailed description before lists of all functions and structures
Jan Janak [Tue, 14 Aug 2007 12:24:10 +0000 (12:24 +0000)]
- write detailed description before lists of all functions and structures

13 years agomemset() was sometimes bypassed for some reason in dns_cache_clone_entry()
Miklos Tirpak [Mon, 13 Aug 2007 14:33:57 +0000 (14:33 +0000)]
memset() was sometimes bypassed for some reason in dns_cache_clone_entry()

13 years ago- sip_msg_t and hdr_field_t types defined
Jan Janak [Mon, 13 Aug 2007 12:57:40 +0000 (12:57 +0000)]
- sip_msg_t and hdr_field_t types defined

13 years ago- doxygen configuration updated to the latest doxygen version
Jan Janak [Mon, 13 Aug 2007 12:37:39 +0000 (12:37 +0000)]
- doxygen configuration updated to the latest doxygen version

13 years ago- make doxygen and clean_doxygen targets available in module Makefiles
Jan Janak [Mon, 13 Aug 2007 12:37:02 +0000 (12:37 +0000)]
- make doxygen and clean_doxygen targets available in module Makefiles

13 years ago- support for setting the source address in tcp_send() and tcpconn_get()
Andrei Pelinescu-Onciul [Wed, 1 Aug 2007 00:05:40 +0000 (00:05 +0000)]
- 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

13 years ago- dst blacklist measurements added
Gergely Kovacs [Tue, 31 Jul 2007 13:27:55 +0000 (13:27 +0000)]
- dst blacklist measurements added

13 years ago- DNS cache measurements added
Gergely Kovacs [Tue, 31 Jul 2007 13:27:09 +0000 (13:27 +0000)]
- DNS cache measurements added

13 years ago- dst blacklist and DNS cache measurements added
Gergely Kovacs [Tue, 31 Jul 2007 13:26:05 +0000 (13:26 +0000)]
- dst blacklist and DNS cache measurements added

13 years agoMissing function prototype
Michal Matyska [Tue, 31 Jul 2007 10:21:25 +0000 (10:21 +0000)]
Missing function prototype

13 years ago- iptrtpproxy added to experimental group and excluded from compilation
Tomas Mandys [Mon, 30 Jul 2007 21:42:21 +0000 (21:42 +0000)]
- iptrtpproxy added to experimental group and excluded from compilation

13 years ago- by default do not blacklist 503 replies with no Retry-After, to be
Andrei Pelinescu-Onciul [Mon, 30 Jul 2007 20:38:44 +0000 (20:38 +0000)]
- by default do not blacklist 503 replies with no Retry-After, to be
 rfc conformant (blst_503_def_timeout is now 0 by default)
 (thanks to  Miklos Tirpak <miklos@iptel.org> for the hint)

13 years ago- Retry-After parser missing files (from older commit)
Andrei Pelinescu-Onciul [Mon, 30 Jul 2007 20:19:31 +0000 (20:19 +0000)]
- Retry-After parser missing files (from older commit)

13 years ago- new modules implementing script callable blacklist functions:
Andrei Pelinescu-Onciul [Mon, 30 Jul 2007 20:04:12 +0000 (20:04 +0000)]
- new modules implementing script callable blacklist functions:
   blst_add([timeout]) - adds the message source to the blacklist
   blst_add_retry_after(min, max) - adds the message source to the blacklist
                         using the Retry-After header value as the timeout
                         value (if not present it returns false)
   blst_del() - deletes the message source from the blacklist
   blst_is_blacklisted() - returns true if the message source is in the
                           blacklist
   (for more info see the module docs)

13 years ago- added support for automatically blacklist 503 replies sources in tm, using
Andrei Pelinescu-Onciul [Mon, 30 Jul 2007 19:57:39 +0000 (19:57 +0000)]
- added support for automatically blacklist 503 replies sources in tm, using
 the Retry-After header value if present (off by default)
- new tm params: blst_503 - turns 503 source blacklisting support on/off
                 blst_503_def_timeout - default timeout used when now
                                        Retry-After header is found
                 blst_503_min_timeout - minimum allowed timeout
                 blst_503_max_timeout - maximum allowed timeout
   (see tm docs for more info)

13 years ago- added support for parsing the Retry-After header
Andrei Pelinescu-Onciul [Mon, 30 Jul 2007 19:49:09 +0000 (19:49 +0000)]
- added support for parsing the Retry-After header

13 years ago- added MAX_unsigned()
Andrei Pelinescu-Onciul [Mon, 30 Jul 2007 19:43:08 +0000 (19:43 +0000)]
- added MAX_unsigned()

13 years ago- added support for deleting an entry from the blacklist (dst_blacklist_del())
Andrei Pelinescu-Onciul [Mon, 30 Jul 2007 19:42:03 +0000 (19:42 +0000)]
- added support for deleting an entry from the blacklist (dst_blacklist_del())
- added support for adding an entry to the blacklist with a specific timeout
 (dst_blacklist_add_to())
- fixed missing hash stats for _dst_blacklist_lst_find
- added a special flag for 503 replies

13 years ago- revert partly fix which broke test of @select in route script.
Michal Matyska [Fri, 27 Jul 2007 14:21:04 +0000 (14:21 +0000)]
- revert partly fix which broke test of @select in route script.
- leave the correction for seg. fault on @select match against regexp.

- the comp_select and the select's itself need to be reviewed (I don't expect it will be done in 2.0)
  = the select was created so it returns 1 if empty string, now it would be nice to return 1 for N/A values
    and 0 (res.len=0) for empty strings
  = now we need to ditinguish of N/A, empty and some value (e.g. for SIP request's header parameters)
  = affects how the test is used in ser.cfg, so the example script will have to be reviewed too
    (if (@to.tag=="") can't be true, as the tag MUST have value if present)

13 years agoRemoving conflicting declarations, they are not needed anymore,
Miklos Tirpak [Thu, 26 Jul 2007 12:06:30 +0000 (12:06 +0000)]
Removing conflicting declarations, they are not needed anymore,
and SER failed to compile because of them.

13 years agodst blacklist callbacks are extended with the sip msg parameter.
Miklos Tirpak [Thu, 26 Jul 2007 11:52:22 +0000 (11:52 +0000)]
dst blacklist callbacks are extended with the sip msg parameter.

WARNING: the sip msg might be in shared memory without locking,
do not modify it!

13 years agoNew RPC commands to manipulate the destination blacklist:
Miklos Tirpak [Thu, 26 Jul 2007 11:42:53 +0000 (11:42 +0000)]
New RPC commands to manipulate the destination blacklist:

- dst_blacklist.view: dumps the content of the blacklist
- dst_blacklist.delete_all: deletes all the entries
                            (except the permanent ones)
- dst_blacklist.add: Adds a new entry to the blacklsit

13 years agoNew RPC commands which manipulate the content of the DNS cache:
Miklos Tirpak [Thu, 26 Jul 2007 11:32:01 +0000 (11:32 +0000)]
New RPC commands which manipulate the content of the DNS cache:

- dns.view: dumps the cache
- dns.delete_all: deletes all the entries
- dns.add_a: adds an A record
- dns.add_aaaa: adds an AAAA record
- dns.add_srv: adds an SRV record
- dns.delete_a: deletes an A record
- dns.delete_aaaa: deletes an AAAA record
- dns.delete_srv: deletes an SRV record

13 years agoDNS watchdog support implementation: a SER module or an external application can...
Miklos Tirpak [Thu, 26 Jul 2007 11:18:34 +0000 (11:18 +0000)]
DNS watchdog support implementation: a SER module or an external application can inform the core that the DNS servers
are down. No DNS query is performed in this case, and even expired entries are used from the cache. Use
dns_set_server_state() function from modules or the dns.set_server_state RPC command to set the sate of the DNS
servers.

The feature is desabled by default, enable it with -DDNS_WATCHDOG_SUPPORT (required DNS cache enabled)

13 years ago- tcpconn_connect takes a new optional param.: the address to bind the
Andrei Pelinescu-Onciul [Wed, 25 Jul 2007 19:40:32 +0000 (19:40 +0000)]
- 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

13 years ago- call regfree to free regexps compiled on the fly
Jan Janak [Tue, 24 Jul 2007 14:15:02 +0000 (14:15 +0000)]
- call regfree to free regexps compiled on the fly

13 years ago- support for selects and attributes in t_check_status
Jan Janak [Tue, 24 Jul 2007 14:11:23 +0000 (14:11 +0000)]
- support for selects and attributes in t_check_status
  if the parameter contains a select or an attribute then
  the value of the parameter will be compiled as regular
  expression on the fly

13 years ago- moved sched_yield() wrapper into sched_yield.h at Miklos's request.
Andrei Pelinescu-Onciul [Fri, 13 Jul 2007 15:12:46 +0000 (15:12 +0000)]
- moved sched_yield() wrapper into sched_yield.h at Miklos's request.

13 years ago- configure cvs to ignore librpath.lst
Jan Janak [Fri, 13 Jul 2007 08:51:05 +0000 (08:51 +0000)]
- configure cvs to ignore librpath.lst

13 years ago- release the db_res structure if execution of the command fails
Jan Janak [Fri, 13 Jul 2007 08:43:35 +0000 (08:43 +0000)]
- release the db_res structure if execution of the command fails

13 years ago- fixed search path for libreadline
Andrei Pelinescu-Onciul [Sat, 7 Jul 2007 13:10:26 +0000 (13:10 +0000)]
- fixed search path for libreadline

13 years ago- -minline-all-stringops not supported on sparc gcc 4.x
Andrei Pelinescu-Onciul [Sat, 7 Jul 2007 00:40:59 +0000 (00:40 +0000)]
- -minline-all-stringops not supported on sparc gcc 4.x

13 years ago- added missing register_fds & get_max_open_fds() declarations
Andrei Pelinescu-Onciul [Sat, 7 Jul 2007 00:33:02 +0000 (00:33 +0000)]
- added missing register_fds & get_max_open_fds() declarations

13 years ago- added register_fds(no), used to register the maximum numbers of fds opened by a...
Andrei Pelinescu-Onciul [Wed, 4 Jul 2007 17:27:33 +0000 (17:27 +0000)]
- 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()

13 years ago- timer_del() returns now an int: 0 on success and <0 on error
Andrei Pelinescu-Onciul [Mon, 2 Jul 2007 15:27:39 +0000 (15:27 +0000)]
- timer_del() returns now an int: 0 on success and <0 on error
 (e.g. timer already deleted or expired, or an attempt to self-delete from
  a timer handler)
- added macros for ticks_t comparisons: TICKS_GTi(t1, t2), TICKS_GE(t1, t2),
TICKS_LT (t1, t2) and TICKS_LE (t1, t2)
- updated timer docs

13 years agoonly formatting
Libor Chocholaty [Mon, 2 Jul 2007 11:07:48 +0000 (11:07 +0000)]
only formatting

13 years ago- fix: reset_static_buffer() before running failure, reply or branch routes
Andrei Pelinescu-Onciul [Thu, 28 Jun 2007 12:47:03 +0000 (12:47 +0000)]
- fix: reset_static_buffer()  before running failure, reply or branch routes
      from tm  (needed for select)
 closes SER-288.

13 years ago- hash statistics rpc for hash algo. debugging (only if tm compiled with
Andrei Pelinescu-Onciul [Wed, 27 Jun 2007 21:11:33 +0000 (21:11 +0000)]
- hash statistics rpc for hash algo. debugging (only if tm compiled with
  -DTM_HASH_STATS)

13 years ago- support for float values
Andrei Pelinescu-Onciul [Wed, 27 Jun 2007 21:09:27 +0000 (21:09 +0000)]
- support for float values

13 years ago- change blacklist_hook s/on_blst_add/on_blst_action/
Andrei Pelinescu-Onciul [Tue, 26 Jun 2007 15:35:06 +0000 (15:35 +0000)]
- change blacklist_hook s/on_blst_add/on_blst_action/
  (it can be used now also for search)

13 years ago- callback support also for search/is_blacklisted (can be used to
Andrei Pelinescu-Onciul [Tue, 26 Jun 2007 15:30:07 +0000 (15:30 +0000)]
- callback support also for search/is_blacklisted (can be used to
 implement permanent blacklists, whitelists a.s.o.)
- lock only if the hash bucket list is non-empty

13 years ago- use a bitmap to quickly find size classes with free fragments
Andrei Pelinescu-Onciul [Tue, 26 Jun 2007 13:34:42 +0000 (13:34 +0000)]
- use a bitmap to quickly find size classes with free fragments
  (should speed-up start-up and non-warmed up ser)
- use bit_scan*()

13 years ago - switched to unsigned char for the debruijn hash (now the entire
Andrei Pelinescu-Onciul [Tue, 26 Jun 2007 13:32:54 +0000 (13:32 +0000)]
 - switched to unsigned char for the debruijn hash (now the entire
  lookup table fits into one cacheline; minor performance improvements
  can be seen on pentiumM and sparc64)

13 years agoadded several error messages for better error tracking
Libor Chocholaty [Mon, 25 Jun 2007 17:54:03 +0000 (17:54 +0000)]
added several error messages for better error tracking

13 years agoPreparation for implementation of UPDATE db statement.
Libor Chocholaty [Mon, 25 Jun 2007 17:51:29 +0000 (17:51 +0000)]
Preparation for implementation of UPDATE db statement.
First of all we need two sets of params in db_cmd.
First for match clause and the second as column-value pairs of changed columns.
Currently it uses three sets of parameters: result, match and vals.
 - result - DB_GET output
 - match - DB_GET, DB_DEL (and DB_UPD in the future)
 - vals - DB_PUT (and DB_UPD)

13 years ago- added functions to get the index of the first or last bit set in
Andrei Pelinescu-Onciul [Mon, 25 Jun 2007 17:20:34 +0000 (17:20 +0000)]
- added functions to get the index of the first or last bit set in
a 32 bit or 64 bit int: bit_scan_forward32(), bit_scan_forward64(),
 bit_scan_reverse32(), bit_scan_reverse64(), bit_scan_forward(long) and
  bit_scan_reverse(long). All of them are very fast, they use asm
   if available (for now only for __CPU_x86 and __CPU_x86_64), and fall back
  to a de Bruijn based method or binary search (depending on which method
  was faster in my measurements on a particular cpu).
- added test/profile.h - simple measure the cpu cycles between two calls
 functions (for now support for x86, x86_64 and sparc64)

13 years agomsg prefixes unification
Libor Chocholaty [Mon, 25 Jun 2007 09:41:54 +0000 (09:41 +0000)]
msg prefixes unification

13 years ago- _timegm resets the information about DST in struct tm structure because the
Jan Janak [Thu, 21 Jun 2007 11:38:42 +0000 (11:38 +0000)]
- _timegm resets the information about DST in struct tm structure because the
   date and time in that structure is in UTC.
- added conversion functions that can convert time_t values between local
  timezones and utc.

13 years ago - non forking init_child (PROC_INIT) fix
Andrei Pelinescu-Onciul [Tue, 19 Jun 2007 14:37:54 +0000 (14:37 +0000)]
 - non forking init_child (PROC_INIT) fix
 (closes SER-287)

13 years ago- Local UAC related functions do not register the TMCB_LOCAL_COMPLETED and TMCB_LOCAL...
Miklos Tirpak [Tue, 19 Jun 2007 13:09:35 +0000 (13:09 +0000)]
- Local UAC related functions do not register the TMCB_LOCAL_COMPLETED and TMCB_LOCAL_RESPONSE_OUT callbacks anymore,
they accept a flag indicating the requested callback types instead.
- The function parameters are grouped together in uac_req_t structure, use set_uac_req() macro to fill it (see uac.h)
- It is possible now to free the memory allocated for the callback parameter if necessary, register the TMCB_DESTROY
callback, and free the memory when:
   - TMCB_DESTROY callback is called
   - or tm module fails to create the UAC, the function returns error.

13 years ago- when failing to send on all branches (due to send error, onsend_router or
Andrei Pelinescu-Onciul [Mon, 18 Jun 2007 21:26:34 +0000 (21:26 +0000)]
- when failing to send on all branches (due to send error, onsend_router or
 blacklist), always send back a send error reply (ignore possible dns
  errors which might have happened during dns failover)

13 years ago - updated to the modified dns api
Andrei Pelinescu-Onciul [Mon, 18 Jun 2007 21:23:54 +0000 (21:23 +0000)]
 - updated to the modified dns api

13 years ago- dns naptr support (off by default)
Andrei Pelinescu-Onciul [Mon, 18 Jun 2007 21:20:58 +0000 (21:20 +0000)]
- dns naptr support (off by default)
- dns naptr related config options: dns_try_naptr (off by default),
 dns_udp_pref, dns_tcp_pref. dns_tls_pref (protocol preferences for naptr
  record selection)
- dns srv load balancing config options: dns_srv_lb (off by default)
- dns resolver & cache api change (to support getting the protocol via naptr)
- fix: dns iteration through A &  AAAA records was not correct

For more info see doc/dns.txt.

13 years agoRegent to accomodate latest schema XML changes and postgresql XLT fix.
Maxim Sobolev [Mon, 18 Jun 2007 21:00:13 +0000 (21:00 +0000)]
Regent to accomodate latest schema XML changes and postgresql XLT fix.

13 years agoDon't forget to insert rows into the version table, like other DB
Maxim Sobolev [Mon, 18 Jun 2007 20:58:51 +0000 (20:58 +0000)]
Don't forget to insert rows into the version table, like other DB
backends do.

13 years ago- fix: incorrect iteration through A & AAAA records
Andrei Pelinescu-Onciul [Thu, 14 Jun 2007 23:29:31 +0000 (23:29 +0000)]
- fix: incorrect iteration through A & AAAA records
- support for SRV weight based load balancing as described in rfc2782
 (as opposed to simple failover)

13 years ago- added ISAAC, Bob Jenkins's fast pseudo-random generator and some
Andrei Pelinescu-Onciul [Thu, 14 Jun 2007 23:23:47 +0000 (23:23 +0000)]
- added  ISAAC, Bob Jenkins's fast pseudo-random generator and some
 wrapper arround it (see http://www.burtleburtle.net/bob/rand/isaacafa.html)

13 years ago- uses the new run_actions interface
Andrei Pelinescu-Onciul [Thu, 14 Jun 2007 23:17:57 +0000 (23:17 +0000)]
- uses the new run_actions interface

13 years ago- updated all the users of run_actions() or do_action() to the new
Andrei Pelinescu-Onciul [Thu, 14 Jun 2007 23:14:29 +0000 (23:14 +0000)]
- updated all the users of run_actions() or do_action() to the new
 interface

13 years ago- fix: run_actions() & friends used some static variables to save some
Andrei Pelinescu-Onciul [Thu, 14 Jun 2007 23:12:26 +0000 (23:12 +0000)]
- fix: run_actions() & friends used some static variables to save some
 internal state (run_flags, last_ret a.s.o). Problems would appear when
 different routes (e.g. main route and an onsend route) would execute in
 the same process (e.g. an onsend route return would exit also the
 main route). Now run_actions(), do_action() and eval_expr() take an
 extra "context" parameter (which must be initialized before use).

13 years ago-faster page pre-faulting (when shm_force_alloc = yes): touch only one word
Andrei Pelinescu-Onciul [Thu, 14 Jun 2007 16:59:21 +0000 (16:59 +0000)]
-faster page pre-faulting (when shm_force_alloc = yes): touch only one word
 per page

13 years agoadded incompatibility description into presence handbook and XCAP module documentatio...
Vaclav Kubart [Thu, 14 Jun 2007 15:08:02 +0000 (15:08 +0000)]
added incompatibility description into presence handbook and XCAP module documentation as requested by SER-283

13 years ago- try first to spin a little and only if this fails go through the futex
Andrei Pelinescu-Onciul [Tue, 12 Jun 2007 22:43:19 +0000 (22:43 +0000)]
- try first to spin a little and only if this fails go through the futex
 syscalls (uses ADAPTIVE_WAIT and ADAPTIVE_WAIT_LOOPS like FAST_LOCK). This
  gives a 5% performance increase compared to the "pure" futex version on my
  machine (for tm).

13 years ago- attempt to properly compute the used w/o overhead info
Andrei Pelinescu-Onciul [Tue, 12 Jun 2007 18:22:45 +0000 (18:22 +0000)]
- attempt to properly compute the used w/o overhead info

13 years ago- more mem info: used and real_used (real_used includes the malloc
Andrei Pelinescu-Onciul [Tue, 12 Jun 2007 18:21:42 +0000 (18:21 +0000)]
- more mem info: used and real_used (real_used includes the malloc
 overheads)
- extensive debuggin command for sf_malloc and ll_malloc: core.sfmalloc
(enabled only if ser compiled with -DLL_MALLOC or -DSF_MALLOC).

13 years ago- added sf_malloc: a multi-process safe (internal locking), multi-pool
Andrei Pelinescu-Onciul [Tue, 12 Jun 2007 18:07:12 +0000 (18:07 +0000)]
- added sf_malloc: a multi-process safe (internal locking), multi-pool
 f_malloc version. Should perform better on lots of CPU once properly
 tunned (experimental for now)
- added ll_malloc: same as above but most operation are lockless
 (except for "big" fragment handling). For now needs tunning and
 it still keeps too many debugging statistics. (experimental for now)

13 years agoRefs SER-274, ported from rel_2_0_0
Greger V. Teigre [Tue, 12 Jun 2007 12:57:56 +0000 (12:57 +0000)]
Refs SER-274, ported from rel_2_0_0
  Deleted README.cfg and updated README and added a warning about obsoleted
  file in README-MODULES.

13 years agoRef SER-271, ported from rel_2_0_0
Greger V. Teigre [Tue, 12 Jun 2007 12:52:17 +0000 (12:52 +0000)]
Ref SER-271, ported from rel_2_0_0
  Used cvs2cl.pl (http://www.red-bean.com/cvs2cl/) to generate GNU-style changelog from
  cvs log. Replaced very old ChangeLog with the newly generated one.
  The ChangeLog only goes back to the rel_0_9_0 release branch and thus contains changes
  for release 2.0 release candidate 1.

13 years ago- execute wait timer handlers & retr. handlers in the fast timer
Andrei Pelinescu-Onciul [Sat, 9 Jun 2007 17:48:52 +0000 (17:48 +0000)]
- execute wait timer handlers & retr. handlers in the fast timer
  (=> faster response), but switch to the slow timer for the FR (which
   might take some time: dns failover, failure routes a.s.o). This change
   brought me 300 extra cps (~3%).
- added missing include

13 years ago- use lr from the parsed uri (no need to re-parse the uri params)
Andrei Pelinescu-Onciul [Sat, 9 Jun 2007 17:44:18 +0000 (17:44 +0000)]
- use lr from the parsed uri (no need to re-parse the uri params)

13 years ago- ver. no ++
Andrei Pelinescu-Onciul [Thu, 7 Jun 2007 21:52:30 +0000 (21:52 +0000)]
- ver. no ++
- -DHAVE_SCHED_SETSCHEDULER added on linux
- excluded from normal compilation the modules that throw compile errors:
  avpops  bdb db_ops dbtext flatstore lcr msilo pdt permissions speeddial

13 years ago- support for pre-faulting the shm mem. pages (memset(0))
Andrei Pelinescu-Onciul [Thu, 7 Jun 2007 21:49:53 +0000 (21:49 +0000)]
- support for pre-faulting the shm mem. pages (memset(0))

13 years ago- tm stats changes: cleaner & faster
Andrei Pelinescu-Onciul [Thu, 7 Jun 2007 21:45:56 +0000 (21:45 +0000)]
- tm stats changes: cleaner & faster
- updated to the new PROC_INIT stuff (fixes a tm bug)

13 years ago- new script config vars: mlock_pages, shm_force_alloc, real_time,
Andrei Pelinescu-Onciul [Thu, 7 Jun 2007 21:44:00 +0000 (21:44 +0000)]
- new script config vars: mlock_pages, shm_force_alloc, real_time,
rt_prio, rt_policy, rt_timer1_prio, rt_timer1_policy, rt_timer2_prio,
rt_timer2_policy (for more info see NEWS)

13 years ago- added the new PROC_INIT rank and the init_child(PROC_INIT) calls
Andrei Pelinescu-Onciul [Thu, 7 Jun 2007 21:40:14 +0000 (21:40 +0000)]
- added the new PROC_INIT rank and the init_child(PROC_INIT) calls
 (see doc/modules_init.txt for more info)
- introduced new options for locking pages in memory, pre-faulting
the shared memory pages and real time mode

13 years ago- short module initialization functions description: what you should and
Andrei Pelinescu-Onciul [Thu, 7 Jun 2007 21:34:03 +0000 (21:34 +0000)]
- short module initialization functions description: what you should and
 shouldn't do in mod_init, child_init(PROC_MAIN), child_init(PROC_INIT)
  and child_int(other_values)

13 years ago- attempt to fix the replied_locally statistics
Andrei Pelinescu-Onciul [Thu, 7 Jun 2007 21:04:32 +0000 (21:04 +0000)]
- attempt to fix the replied_locally statistics

13 years ago- t_unref bug check relaxed (false positives)
Andrei Pelinescu-Onciul [Thu, 7 Jun 2007 21:02:40 +0000 (21:02 +0000)]
- t_unref bug check relaxed (false positives)

13 years ago- partial update (new tm stuff a.s.o.)
Andrei Pelinescu-Onciul [Wed, 6 Jun 2007 21:57:13 +0000 (21:57 +0000)]
- partial update (new tm stuff a.s.o.)

13 years ago- ver. no increased
Andrei Pelinescu-Onciul [Wed, 6 Jun 2007 21:56:53 +0000 (21:56 +0000)]
- ver. no increased

13 years ago- attempt to unroll one of the hash loops
Andrei Pelinescu-Onciul [Wed, 6 Jun 2007 21:56:27 +0000 (21:56 +0000)]
- attempt to unroll one of the hash loops

13 years ago- changed tm hash bucket lists (simplified & a little bit faster)
Andrei Pelinescu-Onciul [Wed, 6 Jun 2007 21:54:04 +0000 (21:54 +0000)]
- changed tm hash bucket lists (simplified & a little bit faster)
- inlined some used-a-lot functions
- don't allocate space for md5 if syn_branches is on (default) =>
 32 bytes saved/transaction

13 years ago- re-arranged tmcb structure members so that even if a module compiled
Andrei Pelinescu-Onciul [Wed, 6 Jun 2007 17:36:52 +0000 (17:36 +0000)]
- re-arranged tmcb structure members so that even if a module compiled
 without TMCB_ONSEND uses a callback from a TMCB_ONSEND compiled tm, it
  will still work

13 years ago- paste error fixed ig TMCB_ONSEND is defined (default off)
Andrei Pelinescu-Onciul [Wed, 6 Jun 2007 14:54:04 +0000 (14:54 +0000)]
- paste error fixed ig TMCB_ONSEND is defined (default off)

13 years ago - reply code when no new branch was added fix
Andrei Pelinescu-Onciul [Tue, 5 Jun 2007 22:13:35 +0000 (22:13 +0000)]
 - reply code when no new branch was added fix

13 years ago- removed EXTRA_DEBUG abort() from bug check in t_check and replaced
Andrei Pelinescu-Onciul [Tue, 5 Jun 2007 22:12:41 +0000 (22:12 +0000)]
- removed EXTRA_DEBUG abort() from bug check in t_check and replaced
 the error message w/ a warning: as Gergely and Miklos pointed out this is a
 perfectly valid case and not a bug

13 years ago- blackisted message switched to L_DBG (less noisy)
Andrei Pelinescu-Onciul [Tue, 5 Jun 2007 21:29:26 +0000 (21:29 +0000)]
- blackisted message switched to L_DBG  (less noisy)