Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: xhe <[email protected]>
  • Loading branch information
xhebox committed Dec 1, 2023
1 parent 148f285 commit 3299ca3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions conf/proxy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
[proxy]
# addr = "0.0.0.0:6000"
# tcp-keep-alive = true
# require-backend-tls = true
require-backend-tls = false

# possible values:
# "" => disable proxy protocol.
# "v2" => accept proxy protocol if any, require backends to support proxy protocol.
# proxy-protocol = ""
proxy-protocol = ""

# graceful-wait-before-shutdown is recommanded to be set to 0 when there's no other proxy(e.g. NLB) between the client and TiProxy.
# possible values:
Expand All @@ -26,7 +26,7 @@ graceful-close-conn-timeout = 15
# possible values:
# "" => enable static routing.
# "pd-addr:pd-port" => automatically tidb discovery.
# pd-addrs = "127.0.0.1:2379"
pd-addrs = ""

# possible values:
# 0 => no limitation.
Expand Down
2 changes: 1 addition & 1 deletion pkg/proxy/backend/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const (
SrcClientSQLErr
// SrcProxyQuit includes: proxy graceful shutdown
SrcProxyQuit
// SrcProxyMalformed includes: malformed packet; invalid sequence
// SrcProxyMalformed includes: malformed packet
SrcProxyMalformed
// SrcProxyNoBackend includes: no backends
SrcProxyNoBackend
Expand Down

0 comments on commit 3299ca3

Please sign in to comment.