From 9bcd40af4081098919ad23a382e1e0fe71cc2311 Mon Sep 17 00:00:00 2001 From: Justin Rubek <25621857+justinrubek@users.noreply.github.com> Date: Wed, 21 Sep 2022 16:37:27 -0500 Subject: [PATCH] close server on Terminate message --- crates/pgsrv/src/codec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/pgsrv/src/codec.rs b/crates/pgsrv/src/codec.rs index a62dce3ee..ca9900290 100644 --- a/crates/pgsrv/src/codec.rs +++ b/crates/pgsrv/src/codec.rs @@ -384,7 +384,7 @@ impl Decoder for PgCodec { b'D' => Self::decode_describe(&mut buf)?, b'E' => Self::decode_execute(&mut buf)?, b'S' => Self::decode_sync(&mut buf)?, - b'X' => Self::decode_terminate(&mut buf)?, + b'X' => return Ok(None), other => return Err(PgSrvError::InvalidMsgType(other)), };