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

Include a value to identify unique connections #28

Open
github-actions bot opened this issue Oct 25, 2022 · 0 comments
Open

Include a value to identify unique connections #28

github-actions bot opened this issue Oct 25, 2022 · 0 comments

Comments

@github-actions
Copy link

include a identification value inside the context that
could be used to identify connections at a later stage.

Line: 41

psql-wire//command.go

Lines 38 to 48 in 3dbc832

func (srv *Server) consumeCommands(ctx context.Context, conn net.Conn, reader *buffer.Reader, writer *buffer.Writer) (err error) {
srv.logger.Debug("ready for query... starting to consume commands")
// TODO: Include a value to identify unique connections
//
// include a identification value inside the context that
// could be used to identify connections at a later stage.
for {
err = readyForQuery(writer, types.ServerIdle)
if err != nil {

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

No branches or pull requests

0 participants