Revision: 3621
Author: [email protected]
Date: Fri Jan 15 10:11:12 2010
Log: Add diagnostic print to debug agent if it fails to open port
Review URL: http://codereview.chromium.org/549061
http://code.google.com/p/v8/source/detail?r=3621
Modified:
/branches/bleeding_edge/src/debug-agent.cc
=======================================
--- /branches/bleeding_edge/src/debug-agent.cc Wed Nov 11 01:50:06 2009
+++ /branches/bleeding_edge/src/debug-agent.cc Fri Jan 15 10:11:12 2010
@@ -54,10 +54,12 @@
while (!bound && !terminate_) {
bound = server_->Bind(port_);
- // If an error occoured wait a bit before retrying. The most common
error
+ // If an error occurred wait a bit before retrying. The most common
error
// would be that the port is already in use so this avoids a busy loop
and
// make the agent take over the port when it becomes free.
if (!bound) {
+ PrintF("Failed to open socket on port %d, "
+ "waiting %d ms before retrying\n", port_, kOneSecondInMicros /
1000);
terminate_now_->Wait(kOneSecondInMicros);
}
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev