From 3d7c6d8160548aab11f2c11d0b05655074fe7b0e Mon Sep 17 00:00:00 2001 From: Corey Van Woert Date: Thu, 31 Mar 2022 12:26:05 -0500 Subject: [PATCH 1/2] feat: add documentation for keepAlive and keepAliveIntiialDelayMillis in client config --- content/api/2-client.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/api/2-client.mdx b/content/api/2-client.mdx index e54241f..3702005 100644 --- a/content/api/2-client.mdx +++ b/content/api/2-client.mdx @@ -23,7 +23,9 @@ config = { query_timeout?: number, // number of milliseconds before a query call will timeout, default is no timeout application_name?: string, // The name of the application that created this Client instance connectionTimeoutMillis?: number, // number of milliseconds to wait for connection, default is no timeout - idle_in_transaction_session_timeout?: number // number of milliseconds before terminating any session with an open idle transaction, default is no timeout + idle_in_transaction_session_timeout?: number, // number of milliseconds before terminating any session with an open idle transaction, default is no timeout + keepAlive?: boolean, // enable keepAlive on the net.Socket, default is false + keepAliveInitialDelayMillis?: number, // number of milliseconds between last data packet received and first keepalive probe, default to zero (keeps last value set), } ``` From f8b1247272a238fa57031d7def9d610c7c792bc3 Mon Sep 17 00:00:00 2001 From: Corey Van Woert Date: Thu, 31 Mar 2022 12:36:50 -0500 Subject: [PATCH 2/2] fix: clean up commas --- content/api/2-client.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/api/2-client.mdx b/content/api/2-client.mdx index 3702005..706f06d 100644 --- a/content/api/2-client.mdx +++ b/content/api/2-client.mdx @@ -25,7 +25,7 @@ config = { connectionTimeoutMillis?: number, // number of milliseconds to wait for connection, default is no timeout idle_in_transaction_session_timeout?: number, // number of milliseconds before terminating any session with an open idle transaction, default is no timeout keepAlive?: boolean, // enable keepAlive on the net.Socket, default is false - keepAliveInitialDelayMillis?: number, // number of milliseconds between last data packet received and first keepalive probe, default to zero (keeps last value set), + keepAliveInitialDelayMillis?: number // number of milliseconds between last data packet received and first keepalive probe, default to zero (keeps last value set) } ```