/
githubmirror
/
rsyslog
Обзор
Документация
Войти
/
githubmirror
/
rsyslog
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/omhttp-retry-timeout.sh
54 строки
1 KB
Rainer Gerhards
tests: replace port preselection with port files
26 май 2026, 10:42
Не верифицирован
26 май 2026, 10:42
bef61a6
Код
Авторство
О чём код?
#!/bin/bash # This file is part of the rsyslog project, released under ASL 2.0 # # Verify that omhttp retry handling copes with delayed failing responses when # restPathTimeout is shorter than the helper's failure delay. Success is that # retries eventually deliver the full sequence without duplicates or gaps. # Starting actual testbench . ${srcdir:=.}/diag.sh init export NUMMESSAGES=2500 export SEQ_CHECK_OPTIONS="-d" omhttp_start_server 0 --fail-every 1000 --fail-with-delay-secs 2 port="$omhttp_server_lstnport" generate_conf add_conf ' module(load="../contrib/omhttp/.libs/omhttp") main_queue(queue.dequeueBatchSize="500") template(name="tpl" type="string" string="{\"msgnum\":\"%msg:F,58:2%\"}") if $msg contains "msgnum:" then action( # Payload action.resumeRetryCount="-1" action.resumeInterval="1" name="my_http_action" type="omhttp" errorfile="'$RSYSLOG_DYNNAME/omhttp.error.log'" template="tpl" server="localhost" serverport="'$port'" restpath="my/endpoint" restpathtimeout="1000" checkpath="ping" batch="off" # Auth usehttps="off" ) ' startup injectmsg shutdown_when_empty wait_shutdown omhttp_get_data $port my/endpoint omhttp_stop_server seq_check exit_test