Skip to content

Commit 5dc2323

Browse files
committed
rm disable http1 upgrade option
1 parent 629c058 commit 5dc2323

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

internal/app/mux.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,6 @@ func websocketHandlerConfig(appCfg config.Config) centrifuge.WebsocketConfig {
347347
cfg.MessageSizeLimit = appCfg.WebSocket.MessageSizeLimit
348348
cfg.CheckOrigin = getCheckOrigin(appCfg)
349349
cfg.PingPongConfig = getPingPongConfig(appCfg)
350-
cfg.DisableHTTP1Upgrade = appCfg.WebSocket.DisableHTTP1Upgrade
351350
return cfg
352351
}
353352

internal/configtypes/types.go

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,16 @@ type HTTP3 struct {
7676

7777
// WebSocket client real-time transport configuration.
7878
type WebSocket struct {
79-
Disabled bool `mapstructure:"disabled" json:"disabled" envconfig:"disabled" yaml:"disabled" toml:"disabled"`
80-
HandlerPrefix string `mapstructure:"handler_prefix" json:"handler_prefix" envconfig:"handler_prefix" default:"/connection/websocket" yaml:"handler_prefix" toml:"handler_prefix"`
81-
Compression bool `mapstructure:"compression" json:"compression" envconfig:"compression" yaml:"compression" toml:"compression"`
82-
CompressionMinSize int `mapstructure:"compression_min_size" json:"compression_min_size" envconfig:"compression_min_size" yaml:"compression_min_size" toml:"compression_min_size"`
83-
CompressionLevel int `mapstructure:"compression_level" json:"compression_level" envconfig:"compression_level" default:"1" yaml:"compression_level" toml:"compression_level"`
84-
ReadBufferSize int `mapstructure:"read_buffer_size" json:"read_buffer_size" envconfig:"read_buffer_size" yaml:"read_buffer_size" toml:"read_buffer_size"`
85-
UseWriteBufferPool bool `mapstructure:"use_write_buffer_pool" json:"use_write_buffer_pool" envconfig:"use_write_buffer_pool" yaml:"use_write_buffer_pool" toml:"use_write_buffer_pool"`
86-
WriteBufferSize int `mapstructure:"write_buffer_size" json:"write_buffer_size" envconfig:"write_buffer_size" yaml:"write_buffer_size" toml:"write_buffer_size"`
87-
WriteTimeout Duration `mapstructure:"write_timeout" json:"write_timeout" envconfig:"write_timeout" default:"1000ms" yaml:"write_timeout" toml:"write_timeout"`
88-
MessageSizeLimit int `mapstructure:"message_size_limit" json:"message_size_limit" envconfig:"message_size_limit" default:"65536" yaml:"message_size_limit" toml:"message_size_limit"`
89-
DisableHTTP1Upgrade bool `mapstructure:"disable_http1_upgrade" json:"disable_http1_upgrade" envconfig:"disable_http1_upgrade" yaml:"disable_http1_upgrade" toml:"disable_http1_upgrade"`
79+
Disabled bool `mapstructure:"disabled" json:"disabled" envconfig:"disabled" yaml:"disabled" toml:"disabled"`
80+
HandlerPrefix string `mapstructure:"handler_prefix" json:"handler_prefix" envconfig:"handler_prefix" default:"/connection/websocket" yaml:"handler_prefix" toml:"handler_prefix"`
81+
Compression bool `mapstructure:"compression" json:"compression" envconfig:"compression" yaml:"compression" toml:"compression"`
82+
CompressionMinSize int `mapstructure:"compression_min_size" json:"compression_min_size" envconfig:"compression_min_size" yaml:"compression_min_size" toml:"compression_min_size"`
83+
CompressionLevel int `mapstructure:"compression_level" json:"compression_level" envconfig:"compression_level" default:"1" yaml:"compression_level" toml:"compression_level"`
84+
ReadBufferSize int `mapstructure:"read_buffer_size" json:"read_buffer_size" envconfig:"read_buffer_size" yaml:"read_buffer_size" toml:"read_buffer_size"`
85+
UseWriteBufferPool bool `mapstructure:"use_write_buffer_pool" json:"use_write_buffer_pool" envconfig:"use_write_buffer_pool" yaml:"use_write_buffer_pool" toml:"use_write_buffer_pool"`
86+
WriteBufferSize int `mapstructure:"write_buffer_size" json:"write_buffer_size" envconfig:"write_buffer_size" yaml:"write_buffer_size" toml:"write_buffer_size"`
87+
WriteTimeout Duration `mapstructure:"write_timeout" json:"write_timeout" envconfig:"write_timeout" default:"1000ms" yaml:"write_timeout" toml:"write_timeout"`
88+
MessageSizeLimit int `mapstructure:"message_size_limit" json:"message_size_limit" envconfig:"message_size_limit" default:"65536" yaml:"message_size_limit" toml:"message_size_limit"`
9089
}
9190

9291
// SSE client real-time transport configuration.

0 commit comments

Comments
 (0)