Increase Request Read limit

This commit is contained in:
speatzle 2024-05-21 15:41:35 +02:00
parent 0565f99212
commit 21801362f9

View file

@ -62,6 +62,9 @@ func handleWorkerWebsocket(w http.ResponseWriter, r *http.Request) {
} }
defer c.CloseNow() defer c.CloseNow()
// Increase Read limit to 10 MB Since the task status might be very long due to ffmpeg log spam
c.SetReadLimit(10000000)
// Track Connection // Track Connection
func() { func() {
WorkersMutex.Lock() WorkersMutex.Lock()