X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=main.go;h=8a39053dc18444de2601b8a93039f6dde57cca8f;hb=b9b48a3e2d1c9dca2e0b2c9668e69dc892a2efee;hp=a6109acfb6345cffcf9dae244549398394ec5237;hpb=88e89726fc19cd0e722d2526cbbf28afc5571127;p=uploader.git diff --git a/main.go b/main.go index a6109ac..8a39053 100644 --- a/main.go +++ b/main.go @@ -229,9 +229,9 @@ func main() { ReadHeaderTimeout: 10 * time.Second, MaxHeaderBytes: 10 * (1 << 10), } - s.SetKeepAlivesEnabled(false) http.HandleFunc("/upload/", upload) if *doUCSPI { + s.SetKeepAlivesEnabled(false) ln := &UCSPI{} s.ConnState = connStater err := s.Serve(ln)