diff options
| author | Alexander_Kabui <alexanderkabua@gmail.com> | 2026-10-04 13:07:44 +0300 |
|---|---|---|
| committer | Alexander_Kabui <alexanderkabua@gmail.com> | 2026-10-05 21:54:17 +0300 |
| commit | 5071434cd3b6c652d95ac8b2026dd173a7fbbace (patch) | |
| tree | 03e2b33aa0ebe468a89023eaf060073c8e9382b2 /test/python/test_groups.py | |
| parent | 98b71eb8c080c21ca458961805019170c794fdc7 (diff) | |
| download | genenetwork4-5071434cd3b6c652d95ac8b2026dd173a7fbbace.tar.gz | |
* src/routes/search.rs (search): share one reqwest client with a
total timeout for gn3 calls reqwest::get built a fresh client per query (no keepalive) and set no timeout, while gn3 sets none of its own -- a stalled upstream would hang the handler past any front-proxy timeout. One shared client in a OnceLock now, mirroring the shared-DB-pool pattern. * src/config.rs (Config): add GN3_TIMEOUT_SECS (default 30); normalize GN3_URL to end with a slash. * tests/search.rs test/python/test_search.py (search): one scenario mapping a gn3 5xx to the 502 backend_error shape.
Diffstat (limited to 'test/python/test_groups.py')
0 files changed, 0 insertions, 0 deletions
