Allow the debugger agent to reuse ports stuck in TIME_WAIT for listening.
authorsgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 20 Mar 2009 09:03:36 +0000 (09:03 +0000)
committersgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 20 Mar 2009 09:03:36 +0000 (09:03 +0000)
commit32de098ef68c545fc3b1f040d2556bc0306729e7
treef08a29331a52978c13e54c1e3bfc70986a92b6a6
parent83111deb977823de7b79f0537b3fc5a0f51cab60
Allow the debugger agent to reuse ports stuck in TIME_WAIT for listening.

When the debugger agent terminates the used port can be stuck in TIME_WAIT for some time depending on the OS and the state of the socket. With this change will allow the debug agent to start listening on a port still in TIME_WAIT. During development of both V8 and embedding applications this makes it much easier to restart an application using the debugger agent.

This also makes it possible to run the tests involving the debugger agent multiple times without failure.
Review URL: http://codereview.chromium.org/50050

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1558 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/debug-agent.cc
test/cctest/test-debug.cc