Fix socket timeout test failures.
The kernel uses awkward device-specific units that make tests with timeouts
that aren't integer multiples of a second awkward.
There's no common superclass for the various sockets, so we can't factor
out the test even though -- apart from the creation of the specific socket --
it's textually identical in each case. Nice library design, boys!
I've also fixed a couple of CloseGuard warnings in passing.
3 files changed