set keep-alive to false

This commit is contained in:
xvzc 2022-05-09 13:44:00 +09:00
parent 729008083e
commit 8b6bd3d650

View File

@ -43,8 +43,7 @@ func (p *Proxy) Start() {
log.Fatal("Error accepting connection: ", err)
continue
}
// conn.SetDeadLine(time.Now().Add(3 * time.Second))
// conn.SetKeepAlive(false)
conn.SetKeepAlive(false)
go func() {
b, err := conn.ReadBytes()