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

Unified Diff: content/browser/renderer_host/p2p/socket_host_tcp.cc

Issue 677473002: Implement UMA and internal data structure for tracking EWOULDBLOCK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: content/browser/renderer_host/p2p/socket_host_tcp.cc
diff --git a/content/browser/renderer_host/p2p/socket_host_tcp.cc b/content/browser/renderer_host/p2p/socket_host_tcp.cc
index 1ee1627b5d72d9f1175415c1db67b61052b5aa25..ac5198f591d45aa36c660dd33121381dd421052c 100644
--- a/content/browser/renderer_host/p2p/socket_host_tcp.cc
+++ b/content/browser/renderer_host/p2p/socket_host_tcp.cc
@@ -54,6 +54,7 @@ P2PSocketHostTcpBase::P2PSocketHostTcpBase(
connected_(false),
type_(type),
url_context_(url_context) {
+ protocol_type_ = P2PSocketHost::TCP;
}
P2PSocketHostTcpBase::~P2PSocketHostTcpBase() {
@@ -363,6 +364,9 @@ void P2PSocketHostTcpBase::WriteOrQueue(
scoped_refptr<net::DrainableIOBuffer>& buffer) {
if (write_buffer_.get()) {
write_queue_.push(buffer);
+ if (write_queue_.size() > send_queue_length_max_) {
juberti2 2014/10/23 19:38:46 I think we should record the total byte size rathe
guoweis2 2014/10/24 06:08:54 Done. Also changed the WebRTC's socket layer to co
+ send_queue_length_max_ = write_queue_.size();
+ }
return;
}

Powered by Google App Engine
This is Rietveld 408576698