Skip to content

Commit

Permalink
close server on Terminate message
Browse files Browse the repository at this point in the history
  • Loading branch information
justinrubek committed Sep 21, 2022
1 parent c1c3278 commit 9bcd40a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/pgsrv/src/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
};

Expand Down

0 comments on commit 9bcd40a

Please sign in to comment.