1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-09-23 18:54:05 -04:00

fix http error test

This commit is contained in:
Darien Raymond
2018-04-18 23:57:28 +02:00
parent a8aab30e6b
commit 2f3670f60b
2 changed files with 20 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ import (
type Server struct {
Port net.Port
MsgProcessor func(msg []byte) []byte
ShouldClose bool
SendFirst []byte
Listen net.Address
listener *net.TCPListener
@@ -65,6 +66,9 @@ func (server *Server) handleConnection(conn net.Conn) {
fmt.Println("Failed to write response:", err)
break
}
if server.ShouldClose {
break
}
}
conn.Close()
}