Gitexit code > 0

error: RPC failed; curl 56 OpenSSL SSL_read

$error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054

Analysis

The connection to the remote git server was dropped while transferring data, usually due to a large push/pull.

Common Triggers

  • Pushing a very large repository or file.
  • Unstable network connection.
  • HTTP buffer size too small.

Debug Checks

  • $Check file sizes.

Resolution

1
Increase buffer: git config http.postBuffer 524288000.
2
Use SSH instead of HTTPS if possible.