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

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..4bf6d70afc91b58344c7ffdbec55bb8b33093505 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) {
Sergey Ulanov 2014/05/16 23:49:57 Should we also SignalClose() in the IS_OPEN state?
Mallinath (Gone from Chromium) 2014/05/16 23:58:45 Done.
Mallinath (Gone from Chromium) 2014/05/16 23:58:45 Done.
+ state_ = IS_ERROR;
Sergey Ulanov 2014/05/16 23:49:57 this duplicates line 481. Maybe something like thi
Mallinath (Gone from Chromium) 2014/05/16 23:58:45 Done.
+ 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