File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import (
2020// how often should be cleanup called
2121const cleanupPeriod = 4 * time .Second
2222
23- // timeot for first playlist, when it waits for new data
23+ // timeout for first playlist, when it waits for new data
2424const playlistTimeout = 60 * time .Second
2525
2626// minimum segments available to consider stream as active
@@ -250,11 +250,11 @@ func (m *ManagerCtx) ServePlaylist(w http.ResponseWriter, r *http.Request) {
250250 // when command exits before providing any playlist
251251 case <- m .shutdown :
252252 m .logger .Warn ().Msg ("playlist load failed because of shutdown" )
253- http .Error (w , "404 playlist not found " , http .StatusNotFound )
253+ http .Error (w , "500 playlist not available " , http .StatusInternalServerError )
254254 return
255255 case <- time .After (playlistTimeout ):
256256 m .logger .Warn ().Msg ("playlist load channel timeouted" )
257- http .Error (w , "500 not available " , http .StatusInternalServerError )
257+ http .Error (w , "504 playlist timeout " , http .StatusGatewayTimeout )
258258 return
259259 }
260260 }
You can’t perform that action at this time.
0 commit comments