Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1144)

Unified Diff: net/tools/quic/quic_server.cc

Issue 1404873003: relnote: Avoid redundant recvmmsg when the previous recvmmsg returned (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@QUIC_test_tools_104305494
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/quic_packet_reader.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_server.cc
diff --git a/net/tools/quic/quic_server.cc b/net/tools/quic/quic_server.cc
index 966c2cc24b1de09fa776bf69ef9d78aeafd08fdb..b68b7bea3ee4be2f6fa9abed60d75064972f962a 100644
--- a/net/tools/quic/quic_server.cc
+++ b/net/tools/quic/quic_server.cc
@@ -209,14 +209,14 @@ void QuicServer::OnEvent(int fd, EpollEvent* event) {
if (event->in_events & EPOLLIN) {
DVLOG(1) << "EPOLLIN";
- bool read = true;
- while (read) {
+ bool more_to_read = true;
+ while (more_to_read) {
if (use_recvmmsg_) {
- read = packet_reader_->ReadAndDispatchPackets(
+ more_to_read = packet_reader_->ReadAndDispatchPackets(
fd_, port_, dispatcher_.get(),
overflow_supported_ ? &packets_dropped_ : nullptr);
} else {
- read = QuicPacketReader::ReadAndDispatchSinglePacket(
+ more_to_read = QuicPacketReader::ReadAndDispatchSinglePacket(
fd_, port_, dispatcher_.get(),
overflow_supported_ ? &packets_dropped_ : nullptr);
}
« no previous file with comments | « net/tools/quic/quic_packet_reader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698