From 6b3973864a407a02d638398357c484b7a4545b29 Mon Sep 17 00:00:00 2001 From: mdouchin Date: Tue, 18 Nov 2025 13:22:23 +0100 Subject: [PATCH 1/2] Add more example for timeouts --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6b656d4..e107f8f 100644 --- a/README.md +++ b/README.md @@ -339,7 +339,19 @@ SET http.curlopt_tcp_keepalive = 1; By default a 5 second timeout is set for the completion of a request. If a different timeout is desired the following GUC variable can be used to set it in milliseconds: ```sql -SET http.curlopt_timeout_msec = 200; +SET http.curlopt_timeout_ms = 200; +``` + +You can also change the timeout for the connection, to avoid waiting for too long when a service is unavailable: + +```sql +SET SET http.curlopt_connecttimeout_ms = 100; +``` + +When a timeout occurs during a request, a SQL error will be raised: + +```sql +ERROR: Operation timed out after 200 milliseconds with 0 bytes received ``` ## Installation From 31e5d16259bbeb763d259f64888cf18d5aeda5d5 Mon Sep 17 00:00:00 2001 From: mdouchin Date: Tue, 18 Nov 2025 13:25:20 +0100 Subject: [PATCH 2/2] Fix doubled SET in connecttimeout example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e107f8f..e5e7d3b 100644 --- a/README.md +++ b/README.md @@ -345,7 +345,7 @@ SET http.curlopt_timeout_ms = 200; You can also change the timeout for the connection, to avoid waiting for too long when a service is unavailable: ```sql -SET SET http.curlopt_connecttimeout_ms = 100; +SET http.curlopt_connecttimeout_ms = 100; ``` When a timeout occurs during a request, a SQL error will be raised: