summaryrefslogtreecommitdiff
path: root/ci/install-docker-dependencies.sh
diff options
context:
space:
mode:
authorLibravatar Jeff Hostetler <jeffhost@microsoft.com>2021-03-15 21:08:18 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-03-15 14:32:50 -0700
commit7455e05e4e750451eb3c33359a2bc9050156750c (patch)
treefaec10acf177c9e72136242132e497ef82e4bc04 /ci/install-docker-dependencies.sh
parentMerge branch 'tb/ci-run-cocci-with-18.04' into maint (diff)
downloadtgif-7455e05e4e750451eb3c33359a2bc9050156750c.tar.xz
pkt-line: eliminate the need for static buffer in packet_write_gently()
Teach `packet_write_gently()` to write the pkt-line header and the actual buffer in 2 separate calls to `write_in_full()` and avoid the need for a static buffer, thread-safe scratch space, or an excessively large stack buffer. Change `write_packetized_from_fd()` to allocate a temporary buffer rather than using a static buffer to avoid similar issues here. These changes are intended to make it easier to use pkt-line routines in a multi-threaded context with multiple concurrent writers writing to different streams. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ci/install-docker-dependencies.sh')
0 files changed, 0 insertions, 0 deletions