mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-25 15:43:13 +03:00
Differentiate PacketDropReasons
Summary: The existing PacketDropReason values cover many branches in the code making it impossible to isolate the reason for a PARSE_ERROR, INVALID_PACKET, CONNECTION_NOT_FOUND. This change breaks them down into more values that are each used in a single branch. Reviewed By: mjoras Differential Revision: D39149490 fbshipit-source-id: 28cbe1ea6c4a06cf55960058edaa48c28ed4d2ef
This commit is contained in:
committed by
Facebook GitHub Bot
parent
84d93599a5
commit
227236ef85
@@ -268,7 +268,8 @@ void QuicClientTransport::processPacketData(
|
||||
|
||||
RegularQuicPacket* regularOptional = parsedPacket.regularPacket();
|
||||
if (!regularOptional) {
|
||||
QUIC_STATS(statsCallback_, onPacketDropped, PacketDropReason::PARSE_ERROR);
|
||||
QUIC_STATS(
|
||||
statsCallback_, onPacketDropped, PacketDropReason::PARSE_ERROR_CLIENT);
|
||||
if (conn_->qLogger) {
|
||||
conn_->qLogger->addPacketDrop(packetSize, kParse);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user