Add exceptions for test_connectLjava_net_SocketAddressI

OldSocketTest's test_connectLjava_net_SocketAddressI would sometimes
fail on certain networks. The connection attempt to the 'non-reachable' IP
 would be reset by a local router before the expected
timeout occured, thus causing the test to fail.

This change adds additional catch clauses for cases like this,
looking for ECONNREFUSED messages.

Bug: 18143878

Change-Id: I99a500d5c95cc25aa52ef231e6de43233f3e5316
Signed-off-by: Tiberiu Breana <tiberiu.a.breana@intel.com>
(cherry picked from commit d3ba3eb7a3fa67c1de2cb7a5ba999dcf91c13a91)
1 file changed