All Posts programming [Fixed] curl: (56) LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

[Fixed] curl: (56) LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

· 200 words · 1 minute read

This error appears in too many cases, for example: when you are trying to ..

  • upgrade Flutter via flutter upgrade.
  • upgrade a homebrew cask via brew upgrade --cask --greedy.
  • push to GitLab.
  • curl some file from the internet.

the errno 54 (error number 54) means “Connection reset by peer”, which basically indicates a generic network connectivity problem. So, It’s a network issue. If your internet is very slow and there are hiccups with network, you will face this error. Try to run again, and It will run fine.

If the error keep appears with no hope. You can disable the ALPN TLS extension by this command.

echo '--no-alpn' >> ~/.curlrc

then put this line export HOMEBREW_CURLRC=1 in your shell rc file like this.

If you use zsh.

echo 'export HOMEBREW_CURLRC=1' >> ~/.zshrc

If you use bash.

echo 'export HOMEBREW_CURLRC=1' >> ~/.bashrc

Read more about curl itself.

I hope you enjoyed reading this post as much as I enjoyed writing it. If you know a person who can benefit from this information, send them a link of this post. If you want to get notified about new posts, follow me on YouTube , Twitter (x) , LinkedIn , and GitHub .