Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Set ReadHeaderTimeout in http server
Gabe Kangas7d44b3d1a6f6
diff --git a/router/router.go b/router/router.goindex fbc2c18597..fdb5e9dbfc 100644--- a/router/router.go+++ b/router/router.go@@ -3,6 +3,7 @@ package routerimport ("fmt""net/http"+ "time""github.com/prometheus/client_golang/prometheus/promhttp"log "github.com/sirupsen/logrus"@@ -374,8 +375,9 @@ func Start() error {h2s := &http2.Server{}server := &http.Server{- Addr: fmt.Sprintf("%s:%d", ip, port),- Handler: h2c.NewHandler(http.DefaultServeMux, h2s),+ Addr: fmt.Sprintf("%s:%d", ip, port),+ ReadHeaderTimeout: 4 * time.Second,+ Handler: h2c.NewHandler(http.DefaultServeMux, h2s),}log.Infof("Web server is listening on IP %s port %d.", ip, port)