Possible regression in git-http-backend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am not sure if this is a regression or not, but I wanted to get feedback.

It looks like this commit changed some behavior in git-http-backend

https://git.kernel.org/pub/scm/git/git.git/commit/?id=6bc0cb5176a5e42ca4a74e3558e8f0790ed09bb1

The change that it has made is that it no git-upload-pack hangs when
uwsgi doesn't close stdin.

http://lists.unbit.it/pipermail/uwsgi/2016-April/008440.html

This was the only place I could find this discussed online for uwsgi
(but I did find several blog posts comments mentioning the issue).  It
looks like it was worked around in uwsgi >= 2.0.13 by adding the
setting `cgi-close-stdin-on-eof = true`.  But there was some
discussion last year that this shouldn't be needed based on the RFC
for cgi?

http://lists.unbit.it/pipermail/uwsgi/2016-May/008462.html
http://web.archive.org/web/20100212094332/http://hoohoo.ncsa.illinois.edu/cgi/in.html

"""
The server will send CONTENT_LENGTH bytes on this file descriptor.
Remember that it will give the CONTENT_TYPE of the data as well. The
server is in no way obligated to send end-of-file after the script reads
CONTENT_LENGTH bytes.
"""

Here is a gist for providing a config setup, I used the latest nginx
from the nginx repo for centos 7 and uwsgi 2.0.14 from epel.  The
setup requires starting nginx.service and uwsgi.service and creating a
bare repo in /srv/git/ and running

https://gist.github.com/gtmanfred/8b2e26b07db3c75094d0607048b2c828

Thanks,
Daniel



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]