V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
auto
V2EX  ›  Java

请教一下腾讯云流下载慢的问题?这个是为啥

  •  
  •   auto · Sep 16, 2021 · 1657 views
    This topic created in 1686 days ago, the information mentioned may be changed or developed.

    代码如下:文件存储在腾讯云上。

        @GetMapping("/test")
        public void test(@RequestParam(value = "path") String path, HttpServletResponse response) {
            try(InputStream inputStream = fileService.download(path)) {
                IOUtils.copy(inputStream, response.getOutputStream());
            } catch (IOException e) {
                log.error("异常", e);
            }
        }
    
    2 replies    2021-09-20 05:05:04 +08:00
    opengps
        1
    opengps  
       Sep 16, 2021
    你的问题过于含糊,以至于没人回答啊
    首先你说的腾讯云是个 cvm ?公网出带宽多大? 1M 带宽的速度 128KB/s 就是全速了
    wangyu17455
        2
    wangyu17455  
       Sep 20, 2021
    同地域走内网,不同地域走公网
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2741 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 15:40 · PVG 23:40 · LAX 08:40 · JFK 11:40
    ♥ Do have faith in what you're doing.