good morning!!!!

Skip to content
Snippets Groups Projects
Commit 31d7d5f4 authored by Christian Munsayac's avatar Christian Munsayac
Browse files

Merge branch 'master' of https://gfx.cafe/gfx/pggat

parents 975eb88d ed85d69b
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@ package gatling
import (
"context"
"errors"
"fmt"
"gfx.cafe/gfx/pggat/lib/gat/admin"
"gfx.cafe/gfx/pggat/lib/gat/database"
......@@ -194,9 +195,11 @@ func (g *Gatling) handleConnection(ctx context.Context, c net.Conn) error {
err := cl.Accept(ctx)
if err != nil {
log.Println("err in connection:", err.Error())
_ = cl.Send(pg_error.IntoPacket(err))
_ = cl.Flush()
if !errors.Is(err, io.EOF) {
log.Println("err in connection:", err.Error())
_ = cl.Send(pg_error.IntoPacket(err))
_ = cl.Flush()
}
}
_ = c.Close()
return nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment