Explorar el Código

release buffer

v2ray hace 9 años
padre
commit
2f47074c98
Se han modificado 1 ficheros con 1 adiciones y 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()