Skip to content

Commit 8232a0f

Browse files
Denton-Lgitster
authored andcommitted
pkt-line: replace "stateless separator" with "response end"
In 0181b60 (pkt-line: define PACKET_READ_RESPONSE_END, 2020-05-19), the Response End packet was defined for Git's network protocol. When the patch was sent, it included an oversight where the error messages referenced "stateless separator", the work-in-progress name, over "response end", the final name chosen. Correct these error messages by having them correctly reference a "response end" packet. Signed-off-by: Denton Liu <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b0df0c1 commit 8232a0f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkt-line.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void packet_response_end(int fd)
103103
{
104104
packet_trace("0002", 4, 1);
105105
if (write_in_full(fd, "0002", 4) < 0)
106-
die_errno(_("unable to write stateless separator packet"));
106+
die_errno(_("unable to write response end packet"));
107107
}
108108

109109
int packet_flush_gently(int fd)

remote-curl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ static int rpc_read_from_out(struct rpc_state *rpc, int options,
602602
memcpy(buf - 4, "0000", 4);
603603
break;
604604
case PACKET_READ_RESPONSE_END:
605-
die(_("remote server sent stateless separator"));
605+
die(_("remote server sent unexpected response end packet"));
606606
}
607607
}
608608

serve.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ static int process_request(void)
218218
state = PROCESS_REQUEST_DONE;
219219
break;
220220
case PACKET_READ_RESPONSE_END:
221-
BUG("unexpected stateless separator packet");
221+
BUG("unexpected response end packet");
222222
}
223223
}
224224

0 commit comments

Comments
 (0)