Fix socket recv timeout