Skip to content
代码片段 群组 项目
  • Sami Hiltunen's avatar
    2fe99f66
    delay PostUploadPack response until request is fully read · 2fe99f66
    Sami Hiltunen 创作于
    Git and Gitaly stream upload-pack response data as soon as it is
    available. Some HTTP clients do not support the response being streamed
    back while the server is still reading from the request body. To avoid
    this, the request was buffered in to a temporary file before passing it
    to Gitaly for handling. The buffer had a maximum size of 10MB, which is
    now reached by requests to large repositories. These requests were then
    truncated, causing Git to fail.
    
    This commit fixes the problem by removing the request buffering and the
    maximum size. Instead, the response is buffered in to a temporary file
    until the request body is fully read, thus avoiding the problem of
    streaming the request and the response simultaneously.
    2fe99f66
    历史
    delay PostUploadPack response until request is fully read
    Sami Hiltunen 创作于
    Git and Gitaly stream upload-pack response data as soon as it is
    available. Some HTTP clients do not support the response being streamed
    back while the server is still reading from the request body. To avoid
    this, the request was buffered in to a temporary file before passing it
    to Gitaly for handling. The buffer had a maximum size of 10MB, which is
    now reached by requests to large repositories. These requests were then
    truncated, causing Git to fail.
    
    This commit fixes the problem by removing the request buffering and the
    maximum size. Instead, the response is buffered in to a temporary file
    until the request body is fully read, thus avoiding the problem of
    streaming the request and the response simultaneously.
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。