Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added SSL request and SASL auth messages #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BOPOHA
Copy link

@BOPOHA BOPOHA commented Mar 15, 2021

func ReadNBytes

I am facing the problem of reading a stream into a byte chunk of the full size of the pg message.
But it works fine with byte-by-byte reading.
You can reproduce this error by running a multi-line query with 128+ KB response.
Also I found that the problem occurs where the TCP length changes (from 8k to 32k bytes in my case).
Screenshot from 2021-03-03 00-09-16

func ParseClientMessage / ParseServerMessage

small refactoring, and we pass the prepared message to the parsing functions.

errorMap:

changed the struct for correct parsing by the messageToString function

Added:

  • SSLRequest
  • SASL messages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant