pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Unexpected ErrorMessage reply to SSLRequest
2+ messages / 2 participants
[nested] [flat]

* Unexpected ErrorMessage reply to SSLRequest
@ 2018-01-31 22:01 Michał Muskała <michal@muskala.eu>
  2018-02-02 19:36 ` Re: Unexpected ErrorMessage reply to SSLRequest Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Michał Muskała @ 2018-01-31 22:01 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

Hello everybody,

I'm one of the maintainers of postgrex [1] - an Elixir client for Postgresql. 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 [2] indicates this can only ever happen on a "very ancient server" that does not have SSL support, but the bug report indicated it happened with 9.6.5 (on a fairly new Heroku instance). Importantly, when we got that reply, other connections to that server were failing with ERROR 53200 (out_of_memory) 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 the ErrorMessage can happen under some failure scenarios other than lack of SSL support.

Regards,
Michał Muskała.

[1] https://github.com/elixir-ecto/postgrex
[2] https://www.postgresql.org/docs/10/static/protocol-flow.html#idm46428663878176

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Unexpected ErrorMessage reply to SSLRequest
  2018-01-31 22:01 Unexpected ErrorMessage reply to SSLRequest Michał Muskała <michal@muskala.eu>
@ 2018-02-02 19:36 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2018-02-02 19:36 UTC (permalink / raw)
  To: Michał Muskała <michal@muskala.eu>; pgsql-general@lists.postgresql.org

On 1/31/18 17:01, Michał Muskała wrote:
> I'm one of the maintainers of postgrex [1] - an Elixir client for
> Postgresql. 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.

What did the client error message say, and what did you see in the
server log?

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

I'm not sure, but the documentation also says that you should handle it
nonetheless. ;-)

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-02-02 19:36 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-01-31 22:01 Unexpected ErrorMessage reply to SSLRequest Michał Muskała <michal@muskala.eu>
2018-02-02 19:36 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox