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

Unified Diff: mojo/services/network/web_socket_impl.cc

Issue 1820233002: [WebSocket] Incoming close frame should not overtake data frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
Index: mojo/services/network/web_socket_impl.cc
diff --git a/mojo/services/network/web_socket_impl.cc b/mojo/services/network/web_socket_impl.cc
index 2d89149d49748efa299523e7afa35be8f6b9fe98..337461043c1ca28422b3faaeba902538f191c1ba 100644
--- a/mojo/services/network/web_socket_impl.cc
+++ b/mojo/services/network/web_socket_impl.cc
@@ -220,12 +220,12 @@ void WebSocketImpl::Send(bool fin,
void WebSocketImpl::FlowControl(int64_t quota) {
DCHECK(channel_);
- channel_->SendFlowControl(quota);
+ ignore_result(channel_->SendFlowControl(quota));
}
void WebSocketImpl::Close(uint16_t code, const String& reason) {
DCHECK(channel_);
- channel_->StartClosingHandshake(code, reason);
+ ignore_result(channel_->StartClosingHandshake(code, reason));
}
void WebSocketImpl::DidReadFromSendStream(bool fin,

Powered by Google App Engine
This is Rietveld 408576698