From b4b9435b582ecf1c3d11fbc8b6c8a21a3fd32935 Mon Sep 17 00:00:00 2001 From: Iwasaki Yudai Date: Fri, 21 Aug 2015 12:34:15 +0900 Subject: [PATCH] Don't send EOT It was a bug that sending EOT when closing connection. --- app/app.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/app.go b/app/app.go index 6a42f88..9312d0d 100644 --- a/app/app.go +++ b/app/app.go @@ -216,10 +216,6 @@ func (app *App) generateHandler() func(w http.ResponseWriter, r *http.Request) { go func() { <-exit - if app.PermitWrite { - fio.Write([]byte{4}) - } - fio.Close() conn.Close() log.Printf("Connection closed: %s", r.RemoteAddr) }()