mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-10 21:22:20 +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:
committed by
Facebook GitHub Bot
parent
ca412512af
commit
ee71bf229e
@@ -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);
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user