nghttpx: Send Stateless Reset in response to Short packet only for now

This commit is contained in:
Tatsuhiro Tsujikawa 2021-08-29 18:53:40 +09:00
parent 2b4dc4496f
commit 58d81dbc52
1 changed files with 5 additions and 2 deletions

View File

@ -172,8 +172,11 @@ int QUICConnectionHandler::handle_packet(const UpstreamAddr *faddr,
}
}
// TODO Must be rate limited
send_stateless_reset(faddr, dcid, dcidlen, remote_addr, local_addr);
if (!(data[0] & 0x80)) {
// TODO Must be rate limited
send_stateless_reset(faddr, dcid, dcidlen, remote_addr, local_addr);
}
return 0;
}