remove unneeded DETACH-SOCKET condition
deal with IPv6 addresses from usocket