libpq can now talk to either 3.0 or 2.0 protocol servers. It first tries
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 8 Jun 2003 17:43:00 +0000 (17:43 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 8 Jun 2003 17:43:00 +0000 (17:43 +0000)
commit6bdb7aa4db5571c83c87f5f761d4af4bc73e166e
treebf819a9fe25640b32f9899d0bf41b218df8d2d98
parent152ce7a4909aec35771e925fd7fa97bae1103763
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.)
13 files changed:
src/backend/libpq/ip.c
src/backend/libpq/pqcomm.c
src/include/libpq/ip.h
src/interfaces/libpq/Makefile
src/interfaces/libpq/fe-auth.c
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-misc.c
src/interfaces/libpq/fe-protocol2.c [new file with mode: 0644]
src/interfaces/libpq/fe-protocol3.c [new file with mode: 0644]
src/interfaces/libpq/fe-secure.c
src/interfaces/libpq/libpq-fe.h
src/interfaces/libpq/libpq-int.h