Skip to content

Commit

Permalink
remove listenBacklog option because it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
iSchluff committed Nov 17, 2023
1 parent 26ebc26 commit 32ce932
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 10 deletions.
4 changes: 0 additions & 4 deletions config.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ addresses = ["localhost:1337"]
# for more info
#lossMaxTTL = 0

# SRT protocol `listen_timeout`, value set in milliseconds. Sets the socket listen timeout, or the
# maximum time to wait for a response from the client before dropping the connection
#listenTimeout = 3000

# Experimental: synchronize MPEG-TS clients to a GOP start
# This should not increase playback delay, just make sure the client always
# starts with a clean packet stream.
Expand Down
2 changes: 0 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ type AppConfig struct {
Addresses []string
PublicAddress string
Latency uint
ListenTimeout uint

// total buffer size in bytes, determines maximum delay of a client
Buffersize uint
Expand Down Expand Up @@ -88,7 +87,6 @@ func Parse(paths []string) (*Config, error) {
App: AppConfig{
Addresses: []string{"localhost:1337"},
Latency: 200,
ListenTimeout: 3000,
LossMaxTTL: 0,
Buffersize: 384000, // 1s @ 3Mbits/s
SyncClients: false,
Expand Down
1 change: 0 additions & 1 deletion config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ func TestConfig(t *testing.T) {
assert.Equal(t, conf.App.SyncClients, true)
assert.Equal(t, conf.App.PacketSize, uint(1456))
assert.Equal(t, conf.App.LossMaxTTL, uint(50))
assert.Equal(t, conf.App.ListenTimeout, uint(5555))
assert.Equal(t, conf.App.PublicAddress, "dontlookmeup:5432")
assert.Equal(t, conf.App.ListenBacklog, 30)

Expand Down
2 changes: 1 addition & 1 deletion config/testfiles/config_test.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ buffersize = 123000
syncClients = true
packetSize = 1456
lossMaxTTL= 50
listenTimeout= 5555
publicAddress = "dontlookmeup:5432"
listenBacklog = 30

[api]
enabled = false
Expand Down
2 changes: 0 additions & 2 deletions srt/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ type ServerConfig struct {
Addresses []string
PublicAddress string
Latency uint
ListenTimeout uint
LossMaxTTL uint
Auth auth.Authenticator
SyncClients bool
Expand Down Expand Up @@ -136,7 +135,6 @@ func (s *ServerImpl) listenAt(ctx context.Context, host string, port uint16) err
options := make(map[string]string)
options["blocking"] = "0"
options["transtype"] = "live"
options["listen_timeout"] = strconv.Itoa(int(s.config.ListenTimeout))
options["latency"] = strconv.Itoa(int(s.config.Latency))

sck := srtgo.NewSrtSocket(host, port, options)
Expand Down

0 comments on commit 32ce932

Please sign in to comment.