Authentication error when pushing big file

Nautile Bleu nautilebleu at gmail.com
Wed Jun 17 15:08:21 CDT 2009


Hi,

I currently work on doing hg wire commands (clone/push/pull) through
django. I handle HTTP authentication with an adaptation of the
djangosnippet 243 [1]

I works perfectly for small pushes but when trying to push a big
changeset (adding a 4.2MB file) I have a Broken pipe error. The
problem is that the authentication is done on the 'between' request,
and then HTTP_AUTHORIZATION header is sended for each request (heads,
capabilities, etc) But on the unbundle request, the HTTP_AUTHORIZATION
header is "lost" if the changeset is big. I don't know if the problem
is that Hg doesn't send the HTTP_AUTHORIZATION or if django builtin
server doesn't find the HTTP_AUTHORIZATION if the HTTP headers are
big.

I currently work on configuring apache + mod_wsgi to check if the
problem also occurs with a production environment.

Goulwen



[1] http://www.djangosnippets.org/snippets/243/


More information about the Mercurial mailing list