Commit 20507752 by Iwasaki Yudai

Send EOT before exiting

The processes were left behind when clients closed their windows.
1 parent 1c8b87df
Showing with 1 additions and 0 deletions
......@@ -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)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!