commit | a37fb255a1993e835eea8c934205b1e568a1271c | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Wed Aug 14 16:03:05 2013 +0100 |
committer | Brian Carlstrom <bdc@google.com> | Thu Aug 15 09:08:17 2013 -0700 |
tree | 82d3f752cada8705bf4048167ebd10105824e2ea | |
parent | ca2c58ceaf2d35d30fe06b1676cc1436a24c4d30 [diff] |
Fix URLConnectionTest#testConnectTimeouts. Use StuckServer correctly. When StuckServer isn't in blocking mode, its local socket address isn't 127.0.0.1. Attempting to connect to localhost will then throw a SocketException (ECONNREFUSED) instead of a SocketTimeoutException. (cherry picked from commit bf1a9e10eefd28bb3a989df20b4a57c745fb3670) Bug: 10211309 Change-Id: I8aaab598d043b893e73fab9055082fa420cfb9cd