patched socket timeout