This is an automated email from the ASF dual-hosted git repository.

rnewson pushed a commit to branch nouveau-keepalive
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit dd4553b2977e34a42da172b05aa12714572b1bf8
Author: Robert Newson <[email protected]>
AuthorDate: Thu Oct 29 22:12:26 2026 +0000

    nouveau: enable keepalive by default
---
 src/nouveau/src/nouveau_gun.erl | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/nouveau/src/nouveau_gun.erl b/src/nouveau/src/nouveau_gun.erl
index 900d42bd5..3b97ae946 100644
--- a/src/nouveau/src/nouveau_gun.erl
+++ b/src/nouveau/src/nouveau_gun.erl
@@ -125,13 +125,16 @@ start_gun(URL) ->
     #{host := Host, port := Port, scheme := Scheme} = uri_string:parse(URL),
     persistent_term:put(?NOUVEAU_HOST_HEADER, {<<"host">>, [Host, $:, 
integer_to_binary(Port)]}),
     PoolSize = config:get_integer("nouveau", "pool_size", 10),
+    KeepAliveMS = config:get_integer("nouveau", "keepalive_ms", 10000),
     CACertFile = config:get("nouveau", "ssl_cacert_file"),
     KeyFile = config:get("nouveau", "ssl_key_file"),
     CertFile = config:get("nouveau", "ssl_cert_file"),
     Password = config:get("nouveau", "ssl_password"),
     Verify = verify(config:get_boolean("nouveau", "ssl_verify", true)),
     Transport = scheme_to_transport(Scheme),
-    BaseConnOptions = #{transport => Transport, protocols => [http2]},
+    BaseConnOptions = #{
+        transport => Transport, protocols => [http2], http2_opts => 
#{keepalive => KeepAliveMS}
+    },
     BaseTLSOptions =
         if
             CACertFile /= undefined ->

Reply via email to