Fix bug in MasqueConnectionPool where second use of a shared
connection would forget to send.
PiperOrigin-RevId: 843842816
diff --git a/quiche/quic/masque/masque_connection_pool.cc b/quiche/quic/masque/masque_connection_pool.cc
index 2460541..af5c7d4 100644
--- a/quiche/quic/masque/masque_connection_pool.cc
+++ b/quiche/quic/masque/masque_connection_pool.cc
@@ -106,6 +106,7 @@
}
auto pending_request = std::make_unique<PendingRequest>();
if (connection->connection() != nullptr) {
+ QUICHE_LOG(INFO) << "Reusing existing connection to " << authority->second;
pending_request->connection = connection->connection();
pending_request->stream_id =
connection->connection()->SendRequest(request.headers, request.body);
@@ -113,6 +114,9 @@
return absl::InternalError(
absl::StrCat("Failed to send request to ", authority->second));
}
+ connection->connection()->AttemptToSend();
+ } else {
+ QUICHE_LOG(INFO) << "No existing connection to " << authority->second;
}
RequestId request_id = ++next_request_id_;
pending_request->request.headers = request.headers.Clone();