提交 0e3ecaec 编写于 作者: B Bernd Edlinger

Rework partial packet handling once more

Address the concern that commit c53c2fec raised differently.

The original direction of the traffic is encoded in bit 0
of the flight number.
Reviewed-by: NAndy Polyakov <appro@openssl.org>
Reviewed-by: NRichard Levitte <levitte@openssl.org>
Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5923)
上级 1b9f41a0
......@@ -479,7 +479,7 @@ sub process_packet
print "\n";
if (scalar(@{$ret[0]}) == 0) {
if (scalar(@{$ret[0]}) == 0 or length($ret[2]) != 0) {
return "";
}
......
......@@ -279,7 +279,8 @@ sub reconstruct_record
my $server = shift;
my $data;
if ($self->{sent}) {
#We only replay the records in the same direction
if ($self->{sent} || ($self->flight & 1) != $server) {
return "";
}
$self->{sent} = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册