Thread: pgsql: Don't send "cannot connect" errors on invalid startup packet

pgsql: Don't send "cannot connect" errors on invalid startup packet

From
Heikki Linnakangas
Date:
Don't send "cannot connect" errors on invalid startup packet

Commit 16671ba6e7 moved the code that sends "sorry, too many clients
already" and other such messages, but it had the effect that we would
send that error even if the the startup packet processing failed, e.g.
because the client sent an invalid startup packet. That was not
intentional.

Spotted while reading the code again.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5632d6e18a8afd586a99f680eddddc38b4ead769

Modified Files
--------------
src/backend/postmaster/postmaster.c | 65 +++++++++++++++++++------------------
1 file changed, 34 insertions(+), 31 deletions(-)