Skip to content

Commit a127ac5

Browse files
authored
Merge pull request #2908 from dolthub/macneale4-ee57ba96
[auto-bump] [no-release-notes] dependency by macneale4 Add in struct changes to pass through connection config from dolt to vitess.
2 parents ddeab07 + 6692fc4 commit a127ac5

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/dolthub/go-icu-regex v0.0.0-20250319212010-451ea8d003fa
77
github.com/dolthub/jsonpath v0.0.2-0.20240227200619-19675ab05c71
88
github.com/dolthub/sqllogictest/go v0.0.0-20201107003712-816f3ae12d81
9-
github.com/dolthub/vitess v0.0.0-20250320231804-0e77d549294c
9+
github.com/dolthub/vitess v0.0.0-20250324212634-ee57ba96134a
1010
github.com/go-kit/kit v0.10.0
1111
github.com/go-sql-driver/mysql v1.7.2-0.20231213112541-0004702b931d
1212
github.com/gocraft/dbr/v2 v2.7.2

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ github.com/dolthub/vitess v0.0.0-20250304211657-920ca9ec2b9a h1:HIH9g4z+yXr4DIFy
6868
github.com/dolthub/vitess v0.0.0-20250304211657-920ca9ec2b9a/go.mod h1:1gQZs/byeHLMSul3Lvl3MzioMtOW1je79QYGyi2fd70=
6969
github.com/dolthub/vitess v0.0.0-20250320231804-0e77d549294c h1:Dv2DfEGb8WRBi8I5KF5Sy39TuZi/FI692mpobKWcv4g=
7070
github.com/dolthub/vitess v0.0.0-20250320231804-0e77d549294c/go.mod h1:1gQZs/byeHLMSul3Lvl3MzioMtOW1je79QYGyi2fd70=
71+
github.com/dolthub/vitess v0.0.0-20250324212634-ee57ba96134a h1:cWE14qNrcxzsVfGOJ8HKPg9Q1MLWKA8ON7SYRqJmWCs=
72+
github.com/dolthub/vitess v0.0.0-20250324212634-ee57ba96134a/go.mod h1:1gQZs/byeHLMSul3Lvl3MzioMtOW1je79QYGyi2fd70=
7173
github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
7274
github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs=
7375
github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU=

server/server.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ func newServerFromHandler(cfg Config, e *sqle.Engine, sm *SessionManager, handle
158158
ConnReadTimeout: cfg.ConnReadTimeout,
159159
ConnWriteTimeout: cfg.ConnWriteTimeout,
160160
MaxConns: cfg.MaxConnections,
161+
MaxWaitConns: cfg.MaxWaitConnections,
162+
MaxWaitConnsTimeout: cfg.MaxWaitConnectionsTimeout,
161163
ConnReadBufferSize: mysql.DefaultConnBufferSize,
162164
AllowClearTextWithoutTLS: cfg.AllowClearTextWithoutTLS,
163165
}

server/server_config.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ type Config struct {
5757
ConnWriteTimeout time.Duration
5858
// MaxConnections is the maximum number of simultaneous connections that the server will allow.
5959
MaxConnections uint64
60+
// MaxWaitConnections is the maximum number of simultaneous connections that the server will allow to block waiting
61+
// for a connection before new connections result in immediate rejection.
62+
MaxWaitConnections uint32
63+
// MaxWaitConnectionsTimeout is the maximum amount of time that a connection will block waiting for a connection
64+
MaxWaitConnectionsTimeout time.Duration
6065
// TLSConfig is the configuration for TLS on this server. If |nil|, TLS is not supported.
6166
TLSConfig *tls.Config
6267
// RequestSecureTransport will require incoming connections to be TLS. Requires non-|nil| TLSConfig.

0 commit comments

Comments
 (0)