RPC failed; curl 55 OpenSSL SSL_write: Connection was aborted, errno 10053

When tried to execute git push I got the following error:

RPC failed; curl 55 OpenSSL SSL_write: Connection was aborted, errno 10053

The full error message:

This error usually happens if you transfer the data amount that is bigger than http.postBuffer value.  http.postBuffer value is the maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system.
For requests larger than this buffer size, HTTP/1.1 and Transfer-Encoding: chunked is used to avoid creating a massive pack file locally. Default is 1 MiB, which is sufficient for most requests. Though the chunks of data can be served incorrectly by the intermediate systems like firewalls WAFs, or antivirus software.

There are two ways to solve RPC failed; curl 55 OpenSSL SSL_write: Connection was aborted, errno 10053 error:

Increase http.postBuffer size

Increase the http.postBuffer size to make chunks bigger or even send a data as one chunk.

In my case I had to push ~ 20 Mb of data to the remote origin so I set http.postBuffer size to 25Mb:

git config --global http.postBuffer 26214400

And that did the trick!

You can set it even bigger:

🙂

or you can Use SSH instead of HTTPS in Git.

Want me to do this for you? Drop me a line: itgalaxyzzz {at} gmail [dot] com