mirror of
https://github.com/containous/traefik.git
synced 2025-03-19 18:50:12 +03:00
Remove deadlines when handling PostgreSQL connections
This commit is contained in:
parent
a4150409c8
commit
15973f5503
@ -123,6 +123,11 @@ func (r *Router) ServeTCP(conn tcp.WriteCloser) {
|
||||
}
|
||||
|
||||
if postgres {
|
||||
// Remove read/write deadline and delegate this to underlying TCP server.
|
||||
if err := conn.SetDeadline(time.Time{}); err != nil {
|
||||
log.Error().Err(err).Msg("Error while setting deadline")
|
||||
}
|
||||
|
||||
r.servePostgres(r.GetConn(conn, getPeeked(br)))
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user