Received unknown response E for SSLRequest (expecting S or N) · Issue #6600 · npgsql/npgsql · GitHub
Skip to content

Received unknown response E for SSLRequest (expecting S or N) #6600

Description

@Pat28

Could this happen during negatiation?
Using Npgsql 10.0.2, the connectionstring has no ssl settings, so using the default, which is Prefer (I think)
PostgreSQL server is 18.3

Image

Activity

  1. vonzshik commented on Jun 9, 2026

    @vonzshik
    Contributor

    Ugh. Technically, it doesn't make much sense because E means that the server sent us an error instead of the expected S (server supports SSL) or N (server doesn't support SSL), as in, if you don't support SSL, then just send N, no reason to actually try and complain about it. But the docs do specify that the server is allowed to send E and in that case we can retry without SSL.
    Guess we'll just relax the catch block and retry even if we failed before establishing SSL connection, similar to GSS encryption.

  2. self-assigned this
    on Jun 9, 2026
  3. added theissue type on Jun 9, 2026
  4. added this to the 10.0.4 milestone on Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions