mirror of
https://github.com/yudai/gotty.git
synced 2026-03-05 13:20:16 +01:00
Don't send EOT
It was a bug that sending EOT when closing connection.
This commit is contained in:
parent
10d0bd8a17
commit
b4b9435b58
1 changed files with 0 additions and 4 deletions
|
|
@ -216,10 +216,6 @@ func (app *App) generateHandler() func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
<-exit
|
<-exit
|
||||||
if app.PermitWrite {
|
|
||||||
fio.Write([]byte{4})
|
|
||||||
}
|
|
||||||
fio.Close()
|
|
||||||
conn.Close()
|
conn.Close()
|
||||||
log.Printf("Connection closed: %s", r.RemoteAddr)
|
log.Printf("Connection closed: %s", r.RemoteAddr)
|
||||||
}()
|
}()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue