- Router: unified service delivery format [svc_id][src][dst][payload] (end-to-end src/dst from SVC_ROUTE header) - tcp_proxy_client: replace single tx_buf drop-on-backpressure with bounded tx_queue + send_q waiter + retry timer (no data loss, bulk window reopen — removes 62.5ms delayed-ACK stall) - tcp_io: configurable connect timeout (tcp_conn_set_connect_timeout) - tcp_proxy_server: connect_timeout config option (ms, default 2000, 0=off) - check.sh: run tcp_proxy_full integration test with sudo (skip if passwordless sudo unavailable) - test_tcp_io: connect timeout unit test; docs (lwip_nuances.md)
33 lines
994 B
Bash
Executable File
33 lines
994 B
Bash
Executable File
#!/bin/bash
|
|
set -eo pipefail
|
|
cd "$(dirname "$0")"
|
|
|
|
LAST=0; [ -f .check_time ] && read -r LAST < .check_time
|
|
TMO=$(( LAST + 30 ))
|
|
[ $TMO -lt 90 ] && TMO=90
|
|
|
|
START=$(date +%s)
|
|
TMP=$(mktemp)
|
|
timeout $TMO make check -j4 > "$TMP" 2>&1 || {
|
|
tail -40 "$TMP"; rm -f "$TMP"
|
|
[ $(date +%s) -ge $((START + TMO)) ] && echo "TIMEOUT (${TMO}s)" >&2
|
|
exit 1
|
|
}
|
|
grep -E '\[PASS|\[FAIL|\[SKIP|Test Results|Failed tests|Log directory|^====' "$TMP"
|
|
rm -f "$TMP"
|
|
|
|
# Интеграционный тест tcp_proxy_full (требует sudo; без passwordless sudo — пропускаем)
|
|
echo ""
|
|
if [ "$(id -u)" -eq 0 ]; then
|
|
make -C tests check-proxy
|
|
elif command -v sudo >/dev/null 2>&1 && sudo -n true 2>/dev/null; then
|
|
echo "=== tcp_proxy_full integration test (sudo) ==="
|
|
sudo -n make -C tests check-proxy
|
|
else
|
|
echo "[SKIP] tcp_proxy_full integration test (requires passwordless sudo)"
|
|
fi
|
|
|
|
ELAPSED=$(( $(date +%s) - START ))
|
|
echo "Time: ${ELAPSED}s"
|
|
echo "$ELAPSED" > .check_time
|