git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v5 5/5] docs: mention when increasing http.postBuffer is valuable

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Jan 22, 2020, 03:45 UTC
Message-ID
<20200122034543.18927-6-sandals@crustytoothpaste.net>
In-Reply-To
<20200122034543.18927-1-sandals@crustytoothpaste.net>

Users in a wide variety of situations find themselves with HTTP push problems. Oftentimes these issues are due to antivirus software, filtering proxies, or other man-in-the-middle situations; other times, they are due to simple unreliability of the network.

However, a common solution to HTTP push problems found online is to increase http.postBuffer. This works for none of the aforementioned situations and is only useful in a small, highly restricted number of cases: essentially, when the connection does not properly support HTTP/1.1.

Document when raising this value is appropriate and what it actually does, and discourage people from using it as a general solution for push problems, since it is not effective there.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
---
 Documentation/config/http.txt | 8 ++++++++
 1 file changed, 8 insertions(+)
diff --git a/Documentation/config/http.txt b/Documentation/config/http.txt
index 5a32f5b0a5..3d1db91f05 100644
--- a/Documentation/config/http.txt
+++ b/Documentation/config/http.txt
@@ -199,6 +199,14 @@ http.postBuffer::
 	Transfer-Encoding: chunked is used to avoid creating a
 	massive pack file locally.  Default is 1 MiB, which is
 	sufficient for most requests.
++
+Note that raising this limit is only effective for disabling chunked
+transfer encoding and therefore should be used only where the remote
+server or a proxy only supports HTTP/1.0 or is noncompliant with the
+HTTP standard.  Raising this is not, in general, an effective solution
+for most push problems, but can increase memory consumption
+significantly since the entire buffer is allocated even for small
+pushes.
 
 http.lowSpeedLimit, http.lowSpeedTime::
 	If the HTTP transfer speed is less than 'http.lowSpeedLimit'
Previous: brian m. carlsonNext: brian m. carlson
Message 5 of 8 in “Documentation for common user misconceptions”
  1. 0/5 Documentation for common user misconceptionsbrian m. carlson, Jan 22, 2020
  2. 2/5 docs: expand on possible and recommended user config optionsbrian m. carlson, Jan 22, 2020
  3. 1/5 doc: move author and committer information to git-commit(1)brian m. carlson, Jan 22, 2020
  4. 3/5 doc: provide guidance on user.name formatbrian m. carlson, Jan 22, 2020
  5. 5/5 docs: mention when increasing http.postBuffer is valuablebrian m. carlson, Jan 22, 2020
  6. 4/5 doc: dissuade users from trying to ignore tracked filesbrian m. carlson, Jan 22, 2020
  7. Jeff KingJan 22, 2020
  8. Emily ShafferJan 22, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.