Re: Fix potential hang in https handshake (v3)

2012-10-19 Thread Junio C Hamano
Jeff King writes: >> +if (max_fd < 0 && >> +select_timeout.tv_sec > 0 || >> +select_timeout.tv_usec > 5) { >> +select_timeout.tv_sec = 0; >> +select_timeout.tv_usec = 5

Re: Fix potential hang in https handshake (v3)

2012-10-19 Thread Jeff King
On Fri, Oct 19, 2012 at 02:04:20PM -0700, sza...@google.com wrote: > From 32e06128dbc97ceb0d060c88ec8db204fa51be5c Mon Sep 17 00:00:00 2001 > From: Stefan Zager > Date: Thu, 18 Oct 2012 16:23:53 -0700 Drop these lines. > Subject: [PATCH] Fix potential hang in https handshake. And make this one

Fix potential hang in https handshake (v3)

2012-10-19 Thread szager
>From 32e06128dbc97ceb0d060c88ec8db204fa51be5c Mon Sep 17 00:00:00 2001 From: Stefan Zager Date: Thu, 18 Oct 2012 16:23:53 -0700 Subject: [PATCH] Fix potential hang in https handshake. It has been observed that curl_multi_timeout may return a very long timeout value (e.g., 294 seconds and some us