Koha-clms/debian/templates
David Cook 5ca20665a3
Bug 37087: Add TCP keepalive support to SIP server
This change adds the ability to enable and configure TCP keepalive
support for the SIP server using SIPconfig.xml.

For the sake of backwards compatibility, it defaults to disabled
and additional parameters default match typical kernel defaults.

Technical detail can be found in the perldoc for C4/SIP/SIPserver.pm

Test plan:
0. Apply the patch
1. koha-sip --restart kohadev
2. apt-get update && apt-get install tcpdump
3. In one window, run "tcpdump -A -n -v -i any 'port 6001'"
4. In another window, run the following:
echo -e "9300CNterm1|COterm1|CPCPL|\r" | nc 127.0.0.1 6001 -v
5. Note in tcpdump output that after the initial flood of packets,
nothing more is received

6. vi /etc/koha/sites/kohadev/SIPconfig.xml
7. In the "server-params" element, add attributes like the following:
custom_tcp_keepalive='1'
custom_tcp_keepalive_time='10'
custom_tcp_keepalive_intvl='5'
8. koha-sip --restart kohadev
9. In one window, run "tcpdump -A -n -v -i any 'port 6001'"
10. In another window, run the following:
echo -e "9300CNterm1|COterm1|CPCPL|\r" | nc 127.0.0.1 6001 -v
11. Note in tcpdump output that after the initial flood of packets,
ACK packets are sent out every 10+ seconds for the idle connection

Signed-off-by: Tadeusz „tadzik” Sośnierz <tadeusz@sosnierz.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-08-20 15:32:47 +02:00
..
SIPconfig.xml Bug 37087: Add TCP keepalive support to SIP server 2024-08-20 15:32:47 +02:00
apache-shared-disable.conf
…
apache-shared-intranet-plack.conf Bug 37056: Mount a new intranet_svc api to avoid redirects 2024-07-02 17:20:37 +02:00
apache-shared-intranet.conf Bug 35919: Add record sources admin page 2024-04-26 17:06:04 +02:00
apache-shared-opac-plack.conf Bug 35812: Fix search URL aliases in Plack Apache config 2024-05-10 14:11:55 +02:00
apache-shared-opac.conf Bug 25548: Remove Apache rewrite directives that trigger redirects 2020-11-20 14:23:52 +01:00
apache-shared.conf Bug 36531: Serve text/javascript compressed, like application/javascript is 2024-04-08 15:41:12 +02:00
apache-site-https.conf.in Bug 34193: SSLProtocol enable in use versions and disable deprecated versions 2023-08-18 10:29:21 +03:00
apache-site.conf.in Bug 18670: Remove RewriteLog and RewriteLogLevel from sample config files 2020-05-05 10:59:03 +01:00
koha-common.conf
…
koha-conf-site.xml.in Bug 29507: Speed up auto renew cronjob via parallel processing 2024-07-05 15:48:11 +02:00
koha-core.conf Bug 26672: Add additional koha-core and koha-full files to ./debian 2020-11-25 16:18:03 +01:00
koha-sites.conf Bug 18984: Remove NORMARC support 2021-10-07 15:36:40 +02:00
koha-worker@.service Bug 32992: Move background_jobs_worker to misc/workers 2023-02-24 17:52:19 -03:00
log4perl-site.conf.in Bug 36948: (follow-up) Add chomp to sip log4perl config 2024-06-11 08:10:05 +01:00
marc21-retrieval-info-auth-dom.xml Bug 27198: Fix syntax in marc21-retrieval-info-auth-dom.xml 2024-04-05 11:51:14 +02:00
marc21-retrieval-info-bib-dom.xml
…
plack.psgi Bug 37056: Mount a new intranet_svc api to avoid redirects 2024-07-02 17:20:37 +02:00
unimarc-retrieval-info-auth-dom.xml
…
unimarc-retrieval-info-bib-dom.xml
…
zebra-authorities-dom-site.cfg.in
…
zebra-biblios-dom-site.cfg.in
…
zebra.passwd.in
…