mirror of
https://github.com/postgres/postgres.git
synced 2025-07-20 05:03:10 +03:00
libpq can now talk to either 3.0 or 2.0 protocol servers. It first tries
protocol 3, then falls back to 2 if postmaster rejects the startup packet with an old-format error message. A side benefit of the rewrite is that SSL-encrypted connections can now be made without blocking. (I think, anyway, but do not have a good way to test.)
This commit is contained in:
1239
src/interfaces/libpq/fe-protocol2.c
Normal file
1239
src/interfaces/libpq/fe-protocol2.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user