Simple solution for socket timeout.