1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-09 10:00:57 +03:00

Reduce the amount of client giving up FC Blocked stream logging

Summary: as title

Reviewed By: mjoras, lnicco

Differential Revision: D25771697

fbshipit-source-id: 71498c0cad7cecca08f3481461ed425e3a56c9fa
This commit is contained in:
Yang Chi
2021-01-04 18:27:46 -08:00
committed by Facebook GitHub Bot
parent ca412512af
commit ee71bf229e
2 changed files with 4 additions and 2 deletions

View File

@@ -1059,7 +1059,8 @@ void onServerReadDataFromOpen(
conn.peerConnectionError = std::make_pair( conn.peerConnectionError = std::make_pair(
QuicErrorCode(connFrame.errorCode), std::move(errMsg)); QuicErrorCode(connFrame.errorCode), std::move(errMsg));
if (getSendConnFlowControlBytesWire(conn) == 0) { if (getSendConnFlowControlBytesWire(conn) == 0) {
VLOG(2) << "Client gives up a flow control blocked connection"; VLOG_EVERY_N(2, 1000)
<< "Client gives up a flow control blocked connection";
} }
throw QuicTransportException( throw QuicTransportException(
"Peer closed", TransportErrorCode::NO_ERROR); "Peer closed", TransportErrorCode::NO_ERROR);

View File

@@ -42,7 +42,8 @@ void sendStopSendingSMHandler(
isSendingStream(stream.conn.nodeType, stream.id)); isSendingStream(stream.conn.nodeType, stream.id));
if (stream.conn.nodeType == QuicNodeType::Server && if (stream.conn.nodeType == QuicNodeType::Server &&
getSendStreamFlowControlBytesWire(stream) == 0) { getSendStreamFlowControlBytesWire(stream) == 0) {
VLOG(2) << "Client gives up a flow control blocked stream"; VLOG_EVERY_N(2, 1000)
<< "Client gives up a flow control blocked stream";
} }
stream.conn.streamManager->addStopSending(stream.id, frame.errorCode); stream.conn.streamManager->addStopSending(stream.id, frame.errorCode);
break; break;