Skip to content
Snippets Groups Projects
Commit 8d588e32 authored by ale's avatar ale
Browse files

disable some icecast options that give compatibility issues

parent 071ff55f
Branches
No related tags found
No related merge requests found
autoradio (0.2-2) unstable; urgency=low
* Attempt to increase compatibility of the generated icecast configuration.
-- ale <ale@incal.net> Sun, 22 Dec 2013 19:07:30 +0000
autoradio (0.2-1) unstable; urgency=low autoradio (0.2-1) unstable; urgency=low
* Fixes to packaging scripts. * Fixes to packaging scripts.
......
...@@ -21,12 +21,12 @@ var ( ...@@ -21,12 +21,12 @@ var (
type iceLimitsConfig struct { type iceLimitsConfig struct {
Clients int `xml:"clients"` Clients int `xml:"clients"`
Sources int `xml:"sources"` Sources int `xml:"sources"`
Threadpool int `xml:"threadpool"` // Threadpool int `xml:"threadpool"`
QueueSize int `xml:"queue-size"` QueueSize int `xml:"queue-size"`
ClientTimeout int `xml:"client-timeout"` ClientTimeout int `xml:"client-timeout"`
HeaderTimeout int `xml:"header-timeout"` HeaderTimeout int `xml:"header-timeout"`
SourceTimeout int `xml:"source-timeout"` SourceTimeout int `xml:"source-timeout"`
BurstOnConnect int `xml:"burst-on-connect"` // BurstOnConnect int `xml:"burst-on-connect"`
BurstSize int `xml:"burst-size"` BurstSize int `xml:"burst-size"`
} }
...@@ -79,7 +79,7 @@ type iceMountConfig struct { ...@@ -79,7 +79,7 @@ type iceMountConfig struct {
FallbackMount string `xml:"fallback-mount,omitempty"` FallbackMount string `xml:"fallback-mount,omitempty"`
FallbackOverride int `xml:"fallback-override,omitempty"` FallbackOverride int `xml:"fallback-override,omitempty"`
Hidden int `xml:"hidden"` Hidden int `xml:"hidden"`
NoYp int `xml:"no-yp"` // NoYp int `xml:"no-yp"`
OnConnect string `xml:"on-connect,omitempty"` OnConnect string `xml:"on-connect,omitempty"`
OnDisconnect string `xml:"on-disconnect,omitempty"` OnDisconnect string `xml:"on-disconnect,omitempty"`
} }
...@@ -125,12 +125,12 @@ func defaultDebianConfig(publicIp string) *icecastConfig { ...@@ -125,12 +125,12 @@ func defaultDebianConfig(publicIp string) *icecastConfig {
Limits: iceLimitsConfig{ Limits: iceLimitsConfig{
Clients: maxClients, Clients: maxClients,
Sources: maxClients / 2, Sources: maxClients / 2,
Threadpool: 16, // Threadpool: 16,
QueueSize: 1 << 20, QueueSize: 1 << 20,
ClientTimeout: 30, ClientTimeout: 30,
HeaderTimeout: 15, HeaderTimeout: 15,
SourceTimeout: 60, SourceTimeout: 60,
BurstOnConnect: 1, // BurstOnConnect: 1,
BurstSize: 65535, BurstSize: 65535,
}, },
Auth: iceAuthenticationConfig{ Auth: iceAuthenticationConfig{
...@@ -200,9 +200,9 @@ func mountToConfig(m *autoradio.Mount) iceMountConfig { ...@@ -200,9 +200,9 @@ func mountToConfig(m *autoradio.Mount) iceMountConfig {
Name: m.Name, Name: m.Name,
Username: m.Username, Username: m.Username,
Password: m.Password, Password: m.Password,
Hidden: 0,
// MaxListeners: 1000, // MaxListeners: 1000,
Hidden: 0, // NoYp: 1,
NoYp: 1,
} }
if m.Fallback != "" { if m.Fallback != "" {
mconfig.FallbackMount = m.Fallback mconfig.FallbackMount = m.Fallback
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment