Fixed calculation of socket timeout micro seconds.