Setting socket timeout explicitly