Re: [PATCH v8 3/3] http-backend: respect CONTENT_LENGTH for receive-pack
- From
Max Kirillov <max@max630.net>
- Date
- Jul 26, 2018, 04:37 UTC
- Message-ID
- <20180726043751.GB1959@jessie.local>
- In-Reply-To
- <CAM0VKjkSMqPy=N3_0HUNxpCFwusrD_XE5j7kMsE4L-79g2t_VA@mail.gmail.com>
On Wed, Jul 25, 2018 at 08:41:31PM +0200, SZEDER Gábor wrote:
Show 24 quoted lines
> On Wed, Jul 25, 2018 at 4:51 PM Max Kirillov <max@max630.net> wrote: >>> I just happened to stumble upon a failure because of 'fatal: the >>> remote end hung up unexpectedly' in the test 'push plain'. >> >> Did it happen once or repeated? It is rather strange, that >> one shoud not fail. Which OS it was? > > Only once, so far. It was one of my OSX build jobs on Travis CI, but > I don't know what OSX version is used. > > 'act.err' contained this (which will get line-wrapped, I'm afraid): > > ++handler_type=receive > ++shift > ++env CONTENT_TYPE=application/x-git-receive-pack-request > QUERY_STRING=/repo.git/git-receive-pack > 'PATH_TRANSLATED=/Users/travis/t/trash > dir.t5562/.git/git-receive-pack' GIT_HTTP_EXPORT_ALL=TRUE > REQUEST_METHOD=POST > /Users/travis/build/szeder/git-cooking-topics-for-travis-ci/t/t5562/invoke-with-content-length.pl > push_body git http-backend > <...128 zero bytes...>fatal: the remote end hung up unexpectedly > > I couldn't reproduce it on my Linux box.
The only reason for this I could imagine is some perl utility failure to feed the body to git http-backend. I could not reproduce it either, but if such things happen often again maybe should concider C helper instead. Though I'm afraid I easily can make more mistakes in it than perl interpreter authors.
I'll make the other changes, and sofar just hope it would not happen again.