Much better fix for problem with proxies being started and stopped quickly.

Override SocketServer methods and add additional locking so we can wait
for the server thread to finish starting up.

BUG=chromium-os:20150, chromium-os:16574
TEST=Cherry-picked from TOT to this branch

(cherry picked from commit ce442072422a7fdf758817c82ab2cc06bd8af910)
(cherry picked from commit a2c4fde0ce48bea77698d545032c2b5ee9e75dda)

Change-Id: If3468d4b0aa4a12ddd9d11bc2962bd97c1f2b723
Reviewed-by: Don Garrett <>
Tested-by: David James <>
1 file changed