aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-auth.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-02-18 11:43:04 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2022-02-18 11:43:04 -0500
commit2e372869aa38a9d6e4552c192da4454b17e01e38 (patch)
tree06260ae8cfe7281c7b0d158069ca773ca3d7439c /src/interfaces/libpq/fe-auth.c
parentce1e7a2f716919652c280937087b24937677f8b3 (diff)
downloadpostgresql-2e372869aa38a9d6e4552c192da4454b17e01e38.tar.gz
postgresql-2e372869aa38a9d6e4552c192da4454b17e01e38.zip
Don't let libpq PGEVT_CONNRESET callbacks break a PGconn.
As currently implemented, failure of a PGEVT_CONNRESET callback forces the PGconn into the CONNECTION_BAD state (without closing the socket, which is inconsistent with other failure paths), and prevents later callbacks from being called. This seems highly questionable, and indeed is questioned by comments in the source. Instead, let's just ignore the result value of PGEVT_CONNRESET calls. Like the preceding commit, this converts event callbacks into "pure observers" that cannot affect libpq's processing logic. Discussion: https://postgr.es/m/3185105.1644960083@sss.pgh.pa.us
Diffstat (limited to 'src/interfaces/libpq/fe-auth.c')
0 files changed, 0 insertions, 0 deletions