Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pgconn/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,10 @@ func ParseConfigWithOptions(connString string, options ParseConfigOptions) (*Con
return pgproto3.NewFrontend(r, w)
},
BuildContextWatcherHandler: func(pgConn *PgConn) ctxwatch.Handler {
return &DeadlineContextWatcherHandler{Conn: pgConn.conn}
return &DeadlineContextWatcherHandler{
Conn: pgConn.conn,
DeadlineDelay: 50 * time.Millisecond,
}
},
OnPgError: func(_ *PgConn, pgErr *PgError) bool {
// we want to automatically close any fatal errors
Expand Down