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; |
} |