Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eh0UL-0007r6-0I for pgsql-general@arkaria.postgresql.org; Wed, 31 Jan 2018 22:04:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eh0UK-00016v-3D for pgsql-general@arkaria.postgresql.org; Wed, 31 Jan 2018 22:04:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eh0UJ-00016m-Np for pgsql-general@lists.postgresql.org; Wed, 31 Jan 2018 22:04:15 +0000 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eh0UG-0001fR-Fy for pgsql-general@lists.postgresql.org; Wed, 31 Jan 2018 22:04:15 +0000 Received: by mail-lf0-x243.google.com with SMTP id a204so23092079lfa.2 for ; Wed, 31 Jan 2018 14:04:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muskala.eu; s=google; h=date:from:to:message-id:subject:mime-version; bh=UsEXanD1ugaIdQ4HtyIGhG/3G33mTvoYEHth+SRJQDY=; b=uo3tj/Prn8v5aKspzd227ejPGCpO/05poYvNm2K3kHZXro44VjOW4qFFJxCSmhwdym QXSO2wZCovAqJiF7mu86THR+raEg1q2dCCIWnSfIApbsFhfb2pHGvf4vj5hksGzU6ikM BC8V9plChu5gFTBH5T8WFxLvPT1K/8RBXXN08= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:message-id:subject:mime-version; bh=UsEXanD1ugaIdQ4HtyIGhG/3G33mTvoYEHth+SRJQDY=; b=ZjyuBWHoX1LDFlVfOizQOMRHiSMSggL1RrRTFa91m0j7xgAhejl7SU4RDaydWDhaXY CZV/1eRbx4Jn13tD90pUlcfAQKyem/00GwRhiK1sSwHudH4GCpLNeGNGJ2Dnr1eXakLf Yb3u5L1QXjOy+vas4LWDsBtx9N148bQkR+1Lbh3t3bKoy391fYlScmDkAMzeZAJmkuIC sP/pvww6fcrHTaJAodDKfe9kYE+Q4Mygy3jjzmRjc5MBjxRNpTF59ndbujCjYsctjsH3 C+AfdyJmZapmfUuab/nfirfP9/ckWsUBITwkorAELURzxZNc8ByuR6wqy1RG/TkUB55+ b2Pw== X-Gm-Message-State: AKwxytdV8arLcoRLDvJ0MPwj7bKJgNMVHy9tPntLAU2TAOdk2VSoU86t g7+yGaua1cUxhBclVqEFdlY0X58lUI4= X-Google-Smtp-Source: AH8x22563B9UvB6goDmDpn8h9BC8n+tvNjtWX6jrtLkFHZZ26fQH+UfTedDyitV7O12cXlLDm5NeYw== X-Received: by 10.46.76.1 with SMTP id z1mr4685606lja.127.1517436250863; Wed, 31 Jan 2018 14:04:10 -0800 (PST) Received: from [192.168.1.101] (178235041042.dynamic-ww-06.vectranet.pl. [178.235.41.42]) by smtp.gmail.com with ESMTPSA id c76sm4100301lfh.35.2018.01.31.14.04.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Jan 2018 14:04:10 -0800 (PST) Date: Wed, 31 Jan 2018 23:01:15 +0100 From: =?utf-8?Q?Micha=C5=82_Muska=C5=82a?= To: pgsql-general@lists.postgresql.org Message-ID: <4ebe024e-3937-4320-adb4-1d7a29f4d783@Spark> Subject: Unexpected ErrorMessage reply to SSLRequest X-Readdle-Message-ID: 4ebe024e-3937-4320-adb4-1d7a29f4d783@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="5a723d56_3a95f874_2b7a" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --5a723d56_3a95f874_2b7a Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello everybody, I'm one of the maintainers of postgrex =5B1=5D - an Elixir client for Pos= tgresql. We implement the wire protocol and connect directly through tcp.= We got a bug report indicating we got an unexpected ErrorMessage packet = in reply to SSLRequest. The documentation =5B2=5D indicates this can only ever happen on a =22ver= y ancient server=22 that does not have SSL support, but the bug report in= dicated it happened with 9.6.5 (on a fairly new Heroku instance). Importa= ntly, when we got that reply, other connections to that server were faili= ng with ERROR 53200 (out=5Fof=5Fmemory) and the problematic SSLRequest/Er= rorMessage exchange happened during reconnection attempts. I wonder, if this is a bug or rather an omission in the docs that the Err= orMessage can happen under some failure scenarios other than lack of SSL = support. Regards, Micha=C5=82 Muska=C5=82a. =5B1=5D=C2=A0https://github.com/elixir-ecto/postgrex =5B2=5D=C2=A0https://www.postgresql.org/docs/10/static/protocol-flow.html= =23idm46428663878176 --5a723d56_3a95f874_2b7a Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hello everybody,=

I'm one of the maintainers of postgrex =5B1=5D - an Elixir client fo= r Postgresql. We implement the wire protocol and connect directly through= tcp. We got a bug report indicating we got an unexpected ErrorMessage pa= cket in reply to SSLRequest.

The documentation =5B2=5D indicates this can only ever happen on a =22= very ancient server=22 that does not have SSL support, but the bug report= indicated it happened with 9.6.5 (on a fairly new Heroku instance). Impo= rtantly, when we got that reply, other connections to that server were fa= iling with ERROR 53200 (out=5Fof=5Fmemory) and the problematic SSLRequest= /ErrorMessage exchange happened during reconnection attempts.

I wonder, if this is a bug or rather an omission in the docs that th= e ErrorMessage can happen under some failure scenarios other than lack of= SSL support.
--5a723d56_3a95f874_2b7a--