Skip to content
Closed
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ require (
)

go 1.23.3

replace github.com/dolthub/vitess => /Users/neil/Documents/vitess
2 changes: 2 additions & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ func newServerFromHandler(cfg Config, e *sqle.Engine, sm *SessionManager, handle
ConnReadTimeout: cfg.ConnReadTimeout,
ConnWriteTimeout: cfg.ConnWriteTimeout,
MaxConns: cfg.MaxConnections,
MaxWaitConns: cfg.MaxWaitConnections,
MaxWaitConnsTimeout: cfg.MaxWaitConnectionsTimeout,
ConnReadBufferSize: mysql.DefaultConnBufferSize,
AllowClearTextWithoutTLS: cfg.AllowClearTextWithoutTLS,
}
Expand Down
5 changes: 5 additions & 0 deletions server/server_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ type Config struct {
ConnWriteTimeout time.Duration
// MaxConnections is the maximum number of simultaneous connections that the server will allow.
MaxConnections uint64
// MaxWaitConnections is the maximum number of simultaneous connections that the server will allow to block waiting
// for a connection before new connections result in immediate rejection.
MaxWaitConnections uint32
// MaxWaitConnectionsTimeout is the maximum amount of time that a connection will block waiting for a connection
MaxWaitConnectionsTimeout time.Duration
// TLSConfig is the configuration for TLS on this server. If |nil|, TLS is not supported.
TLSConfig *tls.Config
// RequestSecureTransport will require incoming connections to be TLS. Requires non-|nil| TLSConfig.
Expand Down
Loading