diff --git a/app/app.go b/app/app.go index 4d8be5b..99c3a2a 100644 --- a/app/app.go +++ b/app/app.go @@ -201,6 +201,7 @@ func (app *App) generateHandler() func(w http.ResponseWriter, r *http.Request) { go func() { <-exit + fio.Write([]byte{4}) fio.Close() conn.Close() log.Printf("Connection closed: %s", r.RemoteAddr)