V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
auto
V2EX  ›  Java

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

  •  
  •   auto · 2021-09-16 16:56:39 +08:00 · 1144 次点击
    这是一个创建于 924 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

        @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 条回复    2021-09-20 05:05:04 +08:00
    opengps
        1
    opengps  
       2021-09-16 20:08:09 +08:00
    你的问题过于含糊,以至于没人回答啊
    首先你说的腾讯云是个 cvm ?公网出带宽多大? 1M 带宽的速度 128KB/s 就是全速了
    wangyu17455
        2
    wangyu17455  
       2021-09-20 05:05:04 +08:00
    同地域走内网,不同地域走公网
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2324 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 16:11 · PVG 00:11 · LAX 09:11 · JFK 12:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.