6 Commits

Author SHA1 Message Date
Jack Christensen
cbb3fa5ecc Fix reading interrupted messages
When an message is received and a timeout occurs after reading the
header but before reading the entire body the connection state could
be corrupted due to the header being consumed. The next read would
consider the body of the previous message as the header for the next.

fixes #348
2017-12-16 13:45:22 -06:00
Jack Christensen
8f4178b3d3 Use github.com/pkg/errors 2017-06-04 21:30:03 -05:00
Jack Christensen
2e2c2ad778 Replace MarshalBinary with Encode
This new approach can avoid allocations.
2017-05-26 17:00:44 -05:00
Jack Christensen
c6cb362b18 Add flush and close messages to pgproto3 2017-05-19 17:31:22 -05:00
Jack Christensen
b1489a1eab Update pgproto3 to enable pgmock 2017-05-06 08:48:40 -05:00
Jack Christensen
4c24c635a9 Add pgproto3.Backend 2017-05-01 18:11:55 -05:00