author | Nicolas Pitre <nico@fluxnic.net> | |
Wed, 11 Nov 2009 22:24:42 +0000 (17:24 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 13 Nov 2009 22:39:25 +0000 (14:39 -0800) | ||
commit | 6b59f51b312f06d9420d34c09fa408c658aac6d2 | |
tree | 3dff3f5acea4ae259283b6fa1c3fda03336f263c | tree | snapshot |
parent | 1b19fa46344f512949270dc88089574950519ea3 | commit | diff |
give priority to progress messages
In theory it is possible for sideband channel #2 to be delayed if
pack data is quick to come up for sideband channel #1. And because
data for channel #2 is read only 128 bytes at a time while pack data
is read 8192 bytes at a time, it is possible for many pack blocks to
be sent to the client before the progress message fifo is emptied,
making the situation even worse. This would result in totally garbled
progress display on the client's console as local progress gets mixed
with partial remote progress lines.
Let's prevent such situations by giving transmission priority to
progress messages over pack data at all times.
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
In theory it is possible for sideband channel #2 to be delayed if
pack data is quick to come up for sideband channel #1. And because
data for channel #2 is read only 128 bytes at a time while pack data
is read 8192 bytes at a time, it is possible for many pack blocks to
be sent to the client before the progress message fifo is emptied,
making the situation even worse. This would result in totally garbled
progress display on the client's console as local progress gets mixed
with partial remote progress lines.
Let's prevent such situations by giving transmission priority to
progress messages over pack data at all times.
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-upload-archive.c | diff | blob | history | |
upload-pack.c | diff | blob | history |