janbar

1. 最近用git pull几个大项目,总是报如下错误:

error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

2. 按照网上方法,还是存在问题。

// 配置代理
git config --global http.proxy socks5://127.0.0.1:1081
git config --global https.proxy socks5://127.0.0.1:1081
// 增大缓存
git config --global http.postBuffer 1048576000

3. 最终增加如下操作,解决问题。

// 把这个值改大点,完美解决,默认的是1500.
ifconfig eth0 mtu 14000

相关文章:

  • 2021-09-01
  • 2021-04-28
  • 2021-09-16
  • 2021-12-20
  • 2021-10-28
猜你喜欢
  • 2021-06-26
  • 2022-01-19
  • 2021-11-02
  • 2021-12-17
  • 2021-07-30
  • 2021-04-20
  • 2021-05-21
  • 2021-12-24
相关资源
相似解决方案