当前位置:   article > 正文

closed with outstanding read data remain 处理及原因_transfer closed with outstanding read data remaini

transfer closed with outstanding read data remaining

git clone 失败 【 RPC failed; curl 18 transfer closed with outstanding read data remain】

1、出现原因

   使用HTTP协议进行`git clone`时,由于仓库太大出现此问题

2、原理

 传输的文件会小于或大于预期。 当服务器最初报告预期的传输大小,然后交付与先前发送的大小不匹配的数据时,就会出现这种情况,与 content-length 有关.

出现这种问题时,代表只有部分文件被传输【HTTP协议有关】

https://bobcares.com/blog/curl-18-transfer-closed-with-outstanding-read-data-remaining/#:~:text=More%20about%20%27cURL%2018%20transfer,match%20the%20previously%20sent%20size.

3、处理过程

  • 设置postBuffer 大小【未生效】【此处buffer未设置到与仓库同等大小,待测试若同等大小是否会有用】
    • git config --global http.postBuffer 524288000
  • 平台配置ssh秘钥后,使用ssh协议来进行clone【生效】
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/707578
推荐阅读
相关标签
  

闽ICP备14008679号