~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
ci: bound curl health checks with --connect-timeout/--max-time (#3632)
LearningCircuit068db8b07136
diff --git a/.github/workflows/docker-multiarch-test.yml b/.github/workflows/docker-multiarch-test.ymlindex f66fc51317..359577c2a0 100644--- a/.github/workflows/docker-multiarch-test.yml+++ b/.github/workflows/docker-multiarch-test.yml@@ -90,7 +90,7 @@ jobs:TIMEOUT_SECONDS=60echo "Waiting for server to start (timeout: ${TIMEOUT_SECONDS}s)..."for i in $(seq 1 ${TIMEOUT_SECONDS}); do- if curl -f http://localhost:5000 2>/dev/null; then+ if curl -fsS --connect-timeout 2 --max-time 5 http://localhost:5000 2>/dev/null; thenecho "✅ Server started successfully after ${i} seconds on ${{ matrix.platform }}!"breakfidiff --git a/.github/workflows/docker-tests.yml b/.github/workflows/docker-tests.ymlindex 093405dfd9..b25e0e7b96 100644--- a/.github/workflows/docker-tests.yml+++ b/.github/workflows/docker-tests.yml@@ -781,9 +781,11 @@ jobs:-e LDR_DB_KDF_ITERATIONS=1000 \${{ env.TEST_IMAGE }} ldr-web- # Wait for server to be ready+ # Wait for server to be ready.+ # --connect-timeout/--max-time bound TCP and total request time so a+ # hung connection fails fast instead of eating the job timeout.for i in {1..60}; do- if curl -f http://localhost:5000/api/v1/health 2>/dev/null; then+ if curl -fsS --connect-timeout 2 --max-time 5 http://localhost:5000/api/v1/health 2>/dev/null; thenecho "Server is ready after $i seconds"breakfi@@ -798,7 +800,7 @@ jobs:done# Final check- if ! curl -f http://localhost:5000/api/v1/health 2>/dev/null; then+ if ! curl -fsS --connect-timeout 2 --max-time 5 http://localhost:5000/api/v1/health 2>/dev/null; thenecho "Server failed to start after 60 seconds"echo "Server log:"docker logs ldr-a11y-server@@ -1149,7 +1151,7 @@ jobs:run: |echo "Waiting for server to be healthy..."for i in {1..60}; do- if curl -sf http://localhost:5001/api/v1/health > /dev/null 2>&1; then+ if curl -sf --connect-timeout 2 --max-time 5 http://localhost:5001/api/v1/health > /dev/null 2>&1; thenecho "Server is healthy after $i seconds"exit 0fidiff --git a/.github/workflows/nuclei.yml b/.github/workflows/nuclei.ymlindex 351fdaa765..060f150a5f 100644--- a/.github/workflows/nuclei.yml+++ b/.github/workflows/nuclei.yml@@ -59,9 +59,11 @@ jobs:SERVER_PID=$!echo "$SERVER_PID" > server.pid- # Wait for server to start+ # Wait for server to start.+ # --connect-timeout/--max-time bound TCP and total request time so a+ # hung connection fails fast instead of eating the job timeout.for _ in {1..90}; do- if curl -s http://localhost:5000/api/v1/health > /dev/null; then+ if curl -s --connect-timeout 2 --max-time 5 http://localhost:5000/api/v1/health > /dev/null; thenecho "Server started successfully"breakfi@@ -69,7 +71,7 @@ jobs:done# Verify server is running- if ! curl -s http://localhost:5000/api/v1/health > /dev/null; then+ if ! curl -s --connect-timeout 2 --max-time 5 http://localhost:5000/api/v1/health > /dev/null; thenecho "Server failed to start"cat server.logexit 1diff --git a/.github/workflows/owasp-zap-scan.yml b/.github/workflows/owasp-zap-scan.ymlindex 5543edc388..ab7d7250c2 100644--- a/.github/workflows/owasp-zap-scan.yml+++ b/.github/workflows/owasp-zap-scan.yml@@ -57,9 +57,11 @@ jobs:SERVER_PID=$!echo "$SERVER_PID" > server.pid- # Wait for server to start+ # Wait for server to start.+ # --connect-timeout/--max-time bound TCP and total request time so a+ # hung connection fails fast instead of eating the job timeout.for _ in {1..90}; do- if curl -s http://localhost:5000/api/v1/health > /dev/null; then+ if curl -s --connect-timeout 2 --max-time 5 http://localhost:5000/api/v1/health > /dev/null; thenecho "Server started successfully"breakfi@@ -67,7 +69,7 @@ jobs:done# Verify server is running- if ! curl -s http://localhost:5000/api/v1/health > /dev/null; then+ if ! curl -s --connect-timeout 2 --max-time 5 http://localhost:5000/api/v1/health > /dev/null; thenecho "Server failed to start"cat server.logexit 1@@ -149,9 +151,11 @@ jobs:SERVER_PID=$!echo "$SERVER_PID" > server.pid- # Wait for server to start+ # Wait for server to start.+ # --connect-timeout/--max-time bound TCP and total request time so a+ # hung connection fails fast instead of eating the job timeout.for _ in {1..90}; do- if curl -s http://localhost:5000/api/v1/health > /dev/null; then+ if curl -s --connect-timeout 2 --max-time 5 http://localhost:5000/api/v1/health > /dev/null; thenecho "Server started successfully"breakfi@@ -159,7 +163,7 @@ jobs:done# Verify server is running- if ! curl -s http://localhost:5000/api/v1/health > /dev/null; then+ if ! curl -s --connect-timeout 2 --max-time 5 http://localhost:5000/api/v1/health > /dev/null; thenecho "Server failed to start"cat server.logexit 1diff --git a/.github/workflows/playwright-webkit-tests.yml b/.github/workflows/playwright-webkit-tests.ymlindex ea28d5f334..caa7fd3b6f 100644--- a/.github/workflows/playwright-webkit-tests.yml+++ b/.github/workflows/playwright-webkit-tests.yml@@ -71,9 +71,11 @@ jobs:SERVER_PID=$!echo "SERVER_PID=$SERVER_PID" >> "$GITHUB_ENV"- # Wait for server to be ready+ # Wait for server to be ready.+ # --connect-timeout/--max-time bound TCP and total request time so a+ # hung connection fails fast instead of eating the job timeout.for i in {1..30}; do- if curl -s http://127.0.0.1:5000 > /dev/null; then+ if curl -s --connect-timeout 2 --max-time 5 http://127.0.0.1:5000 > /dev/null; thenecho "Server is ready"breakfi@@ -82,7 +84,7 @@ jobs:done# Verify server is running- if ! curl -s http://127.0.0.1:5000 > /dev/null; then+ if ! curl -s --connect-timeout 2 --max-time 5 http://127.0.0.1:5000 > /dev/null; thenecho "Server failed to start"exit 1fi@@ -210,9 +212,11 @@ jobs:SERVER_PID=$!echo "SERVER_PID=$SERVER_PID" >> "$GITHUB_ENV"- # Wait for server to be ready+ # Wait for server to be ready.+ # --connect-timeout/--max-time bound TCP and total request time so a+ # hung connection fails fast instead of eating the job timeout.for i in {1..30}; do- if curl -s http://127.0.0.1:5000 > /dev/null; then+ if curl -s --connect-timeout 2 --max-time 5 http://127.0.0.1:5000 > /dev/null; thenecho "Server is ready"breakfi@@ -221,7 +225,7 @@ jobs:done# Verify server is running- if ! curl -s http://127.0.0.1:5000 > /dev/null; then+ if ! curl -s --connect-timeout 2 --max-time 5 http://127.0.0.1:5000 > /dev/null; thenecho "Server failed to start"exit 1fidiff --git a/.github/workflows/puppeteer-e2e-tests.yml b/.github/workflows/puppeteer-e2e-tests.ymlindex 78e9f69702..baba90ff52 100644--- a/.github/workflows/puppeteer-e2e-tests.yml+++ b/.github/workflows/puppeteer-e2e-tests.yml@@ -141,7 +141,7 @@ jobs:echo "Waiting for server to start..."for i in {1..60}; do- if curl -f http://localhost:5000/ 2>/dev/null; then+ if curl -fsS --connect-timeout 2 --max-time 5 http://localhost:5000/ 2>/dev/null; thenecho "Server is ready after $i seconds!"breakfi@@ -155,7 +155,7 @@ jobs:done# Final check if server is ready- if ! curl -f http://localhost:5000/ 2>/dev/null; then+ if ! curl -fsS --connect-timeout 2 --max-time 5 http://localhost:5000/ 2>/dev/null; thenecho "Server failed to start. Logs:"cat /tmp/ldr_server.logexit 1diff --git a/.github/workflows/responsive-ui-tests-enhanced.yml b/.github/workflows/responsive-ui-tests-enhanced.ymlindex d26814c29c..a476dcd535 100644--- a/.github/workflows/responsive-ui-tests-enhanced.yml+++ b/.github/workflows/responsive-ui-tests-enhanced.yml@@ -129,7 +129,7 @@ jobs:# Wait for server to startfor i in {1..30}; do- if curl -f http://127.0.0.1:5000 2>/dev/null; then+ if curl -fsS --connect-timeout 2 --max-time 5 http://127.0.0.1:5000 2>/dev/null; thenecho "Server is ready after $i seconds"breakfi