From: Erik Faye-Lund Date: Mon, 1 Aug 2011 11:16:10 +0000 (+0200) Subject: connect: only log if all attempts failed (ipv4) X-Git-Tag: v1.7.7-rc0~40^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/7203a2d1ca18b32feda71a48c21e80fb03f2e909?ds=sidebyside;hp=7203a2d1ca18b32feda71a48c21e80fb03f2e909 connect: only log if all attempts failed (ipv4) In 63a995b (Do not log unless all connect() attempts fail), a mechanism to only log connection errors if all attempts failed was introduced for the IPv6 code-path, but not for the IPv4 one. Introduce a matching mechanism so IPv4-users also benefit from this noise-reduction. Move the call to socket after filling in sa, to make it more apparent that errno can't change in between. Signed-off-by: Erik Faye-Lund Signed-off-by: Junio C Hamano ---