Grow []byte channel buffer, fix CI build
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
010e8d73f7
commit
c79d91b718
|
@ -8,7 +8,7 @@ steps:
|
|||
image: golang:1.18rc1-bullseye
|
||||
commands:
|
||||
- DEBIAN_FRONTEND=noninteractive apt update
|
||||
- DEBIAN_FRONTEND=noninteractive apt install -y git build-essential autoconf automake libtool libflac-dev libopus-dev libopusfile-dev libsamplerate0-dev libmp3lame-dev
|
||||
- DEBIAN_FRONTEND=noninteractive apt install -y git build-essential autoconf automake libtool libflac-dev libopus-dev libopusfile-dev libsamplerate0-dev libmp3lame-dev libebur128-dev
|
||||
- git clone --depth 1 https://github.com/xiph/libopusenc.git && cd libopusenc && ./autogen.sh && ./configure --prefix /usr && make && make install && cd ..
|
||||
- git clone --depth 1 https://github.com/mstorsjo/fdk-aac.git && cd fdk-aac && ./autogen.sh && ./configure --prefix /usr && make -j$(nproc) && make install && cd ..
|
||||
- go build -v .
|
||||
|
|
2
queue.go
2
queue.go
|
@ -437,7 +437,7 @@ func (q *Queue) HandleRadioRequest(writer http.ResponseWriter, request *http.Req
|
|||
var packetWriteCallback func(packet packetizer.Packet) error
|
||||
|
||||
//buffer a bit, drop channels when buffer grows to not lock others. They will get disconnected elsewhere
|
||||
const byteSliceChannelBuffer = 128
|
||||
const byteSliceChannelBuffer = 1024 * 16
|
||||
writeChannel := make(chan []byte, byteSliceChannelBuffer)
|
||||
var requestDone error
|
||||
var wgClient sync.WaitGroup
|
||||
|
|
Loading…
Reference in a new issue