refs #2356 fix socket timeout calls to use timeval struct