소스 검색

release buffer

v2ray 9 년 전
부모
커밋
2f47074c98
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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()