Skip to content

Commit ff6b106

Browse files
xris99Christian
andauthored
server : fix hardcoded proxy connection timeout in router mode (ggml-org#18760) (ggml-org#22003)
Fixes: ggml-org#18760 Co-authored-by: Christian <christian@example.com>
1 parent 9789512 commit ff6b106

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/server/server-models.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ server_http_proxy::server_http_proxy(
11471147

11481148
// setup Client
11491149
cli->set_follow_location(true);
1150-
cli->set_connection_timeout(5, 0); // 5 seconds
1150+
cli->set_connection_timeout(timeout_read, 0); // use --timeout value instead of hardcoded 5 s
11511151
cli->set_write_timeout(timeout_read, 0); // reversed for cli (client) vs srv (server)
11521152
cli->set_read_timeout(timeout_write, 0);
11531153
this->status = 500; // to be overwritten upon response

0 commit comments

Comments
 (0)