Explorar o código

release buffer

v2ray %!s(int64=9) %!d(string=hai) anos
pai
achega
2f47074c98
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      testing/servers/tcp/tcp.go

+ 1 - 0
testing/servers/tcp/tcp.go

@@ -50,6 +50,7 @@ func (server *Server) handleConnection(conn net.Conn) {
 			break
 		}
 		response := server.MsgProcessor(request.Value)
+		request.Release()
 		conn.Write(response)
 	}
 	conn.Close()