Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oanse-0005Pz-7O for pgsql-general@arkaria.postgresql.org; Wed, 21 Sep 2022 00:46:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oansb-0006Sa-Kt for pgsql-general@arkaria.postgresql.org; Wed, 21 Sep 2022 00:46:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oansb-0006SR-8T for pgsql-general@lists.postgresql.org; Wed, 21 Sep 2022 00:46:21 +0000 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oansZ-0004Vp-1K for pgsql-general@lists.postgresql.org; Wed, 21 Sep 2022 00:46:20 +0000 Received: by mail-pl1-x631.google.com with SMTP id l10so4058395plb.10 for ; Tue, 20 Sep 2022 17:46:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date; bh=hdRV0zJJmz0sLDph1T7JQZkab1nnIQZZuQjnVSr7xvs=; b=hZe52Vbj4+jgTxMcJ0LZc/Wu2K6hu0Rjpe/FEoS0BLvjeYIl9ddngIWxYLN5ZDS3lA BnNdN31VbT++gCBdrvDmGsnjySQdjjgemdr1t0nf0xjBTPGe3nOuZthllcdL8+OdOoaq FjEAqPwLc21D5HFnXHIo1GWdB4J6Zf/ww/2MXxfo717UnqKBuufLxskEFTO7WO33xNOG jTWvFKDYOkjDFdLNXWj51GYmIOwlmqTmNHehjSgNmAJFp+doSf/lWn/WOizq30gry0Wg CRcw/3x99RXcZ96utxp5mUaMbKYb1VfpXG1Afikuan9hXKC8+phdwEmnUWe1kCYBAPz9 i4jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date; bh=hdRV0zJJmz0sLDph1T7JQZkab1nnIQZZuQjnVSr7xvs=; b=me19sgV4jQ011aPW7dfsTTPZvzSXTUvtDLpb6LAHxWevHya0TG0yQH4GqOCkctXG+6 wYuBop7CjIZpjc72n1DcEFoZl98788duqmiCWL/9TTbM35PJCtFc4BYg4u4oAF8Y11K4 Drsaqm2Dp5Ae6xLNB/RDTgbgyPqxeYIiZ6K6YlJ9BhxJvn66kur7a08WnEBQ2kWV0idG p8SzZsGxCFGF9w3m5d8r/wRPbGoTnPu8u2mEnbEsXxj/J2lSX8FmkrBN4kkwoLGNQvp8 06V5or3UkINqAXROsaxUeMqQhyGx2ThUVGCTGb2y8ZmRQvPPfH6seI5dGikre+velFgX KGnw== X-Gm-Message-State: ACrzQf1xcwt8sq8sZvTVbENeqzLIL6ZCXSz/FnTk8efLDj9jW5xQ+C8C yJl44S97Fr4K4+RtYVG9aQ8K1/ML7Do= X-Google-Smtp-Source: AMsMyM5GLzLoEDV1FOw1WyU7LU26gmatMpq2jAIkSE4qAtQYgNCuPckBjhF5bbytLgOdDB/ds0/eCg== X-Received: by 2002:a17:90a:df13:b0:200:ae8c:700c with SMTP id gp19-20020a17090adf1300b00200ae8c700cmr6802227pjb.203.1663721176733; Tue, 20 Sep 2022 17:46:16 -0700 (PDT) Received: from smtpclient.apple ([136.36.125.124]) by smtp.gmail.com with ESMTPSA id y2-20020a623202000000b0052c849d0886sm551582pfy.86.2022.09.20.17.46.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Sep 2022 17:46:16 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Rob Sargent Mime-Version: 1.0 (1.0) Subject: Re: tcp settings Date: Tue, 20 Sep 2022 18:46:15 -0600 Message-Id: References: <934612.1663716103@sss.pgh.pa.us> Cc: "pgsql-generallists.postgresql.org" In-Reply-To: <934612.1663716103@sss.pgh.pa.us> To: Tom Lane X-Mailer: iPhone Mail (19G82) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk >> My issue is that psql is timing out with "SSL SYSCALL error: Connection=20= >> timed out". >=20 > then keepalives aren't necessarily the solution anyway. When is > this failure occurring ... is it while trying to establish the > database connection in the first place? Or does it only happen > if you've left the psql session sit idle for a long while? >=20 > regards, tom lane Sitting idle for not even a long while. Under half hour I feel would do it. = But I don=E2=80=99t think it times out while I=E2=80=99m =E2=80=9CSQLing=E2= =80=9D=