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

Unified Diff: content/renderer/p2p/ipc_socket_factory.cc

Issue 288923014: Send SignalClose to the clients of P2PSocket, if TCP socket is failed to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/p2p/ipc_socket_factory.cc
diff --git a/content/renderer/p2p/ipc_socket_factory.cc b/content/renderer/p2p/ipc_socket_factory.cc
index 59d94ff6837c0f04ff221ef1b51044d0a1f1bb17..a0b2053f29e3d6176354dc7348e02175d8e58786 100644
--- a/content/renderer/p2p/ipc_socket_factory.cc
+++ b/content/renderer/p2p/ipc_socket_factory.cc
@@ -474,6 +474,10 @@ void IpcPacketSocket::OnSendComplete() {
void IpcPacketSocket::OnError() {
DCHECK_EQ(base::MessageLoop::current(), message_loop_);
+ if (state_ == IS_OPENING && IsTcpClientSocket(type_)) {
Sergey Ulanov 2014/05/16 23:03:21 Do you need this condition? Maybe call SignalClose
Mallinath (Gone from Chromium) 2014/05/16 23:34:57 actually we don't need, but only TCP sockets are l
+ SignalClose(this);
+ }
+
state_ = IS_ERROR;
error_ = ECONNABORTED;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698