Mercurial > hg-stable
view mercurial/templates/map-cmdline.compact @ 40479:197f092b2cd9 stable 4.8.2
server: always close http socket if responding with an error (issue6033)
It's possible for hgweb to respond _very_ early with an error if we're
catching certain types of errors. When we do, we need to tell the client
the socket is toast when there's a POST involved because otherwise there
can be lingering POST data on the socket that will confuse any future
requests on the socket. This manifested as a flaky failure on Linux in an
lfs extension test and a reliable failure on FreeBSD. With this patch
applied, test-lfs-serve-access.t now passes for me on FreeBSD.
Differential Revision: https://phab.mercurial-scm.org/D5498
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sun, 06 Jan 2019 14:58:54 -0500 |
parents | f4aeb952ab77 |
children |
line wrap: on
line source
[templates] ldate = '{label("log.date", "{date|isodate}")}' ldesc = '{label('ui.note log.description', '{desc|strip}')}' ldescfirst = '{label('ui.note log.description', '{desc|firstline|strip}')}' changeset = '{lrev}{tags}{bookmarks}{parents} {lnode} {ldate} {luser}\n {ldescfirst}\n\n' changeset_quiet = '{lrev}:{lnode}\n' changeset_verbose = '{lrev}{tags}{parents} {lnode} {ldate} {lauthor}\n {ldesc}\n\n' lrev = '{label("log.changeset changeset.{phase}", "{rev}")}' lnode = '{label("log.node", "{node|short}")}' lauthor = '{label("log.user", "{author}")}' luser = '{label("log.user", "{author|user}")}' start_tags = '[' tag = '{label("log.tag", "{tag},")}' last_tag = '{tag}]' start_parents = ':' parent = '{lrev},' last_parent = '{lrev}' start_bookmarks = '[' bookmark = '{label("log.bookmark", "{bookmark},")}' last_bookmark = '{bookmark}]'