multi: fix re-sending request on early connection close
authorDaniel Stenberg <daniel@haxx.se>
Fri, 30 Nov 2012 13:52:38 +0000 (14:52 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 4 Dec 2012 21:14:23 +0000 (22:14 +0100)
commit8b02afd9a938d6db150fa1ba34cca64de873f5d8
treeb7567f4eb85251a0ef63fd9c84580ac50e40f337
parent3202cc61627c07ef3311fc4b3d9880ad7bcd77d2
multi: fix re-sending request on early connection close

This handling already works with the easy-interface code. When a request
is sent on a re-used connection that gets closed by the server at the
same time as the request is sent, the situation may occur so that we can
send the request and we discover the broken connection as a RECV_ERROR
in the PERFORM state and then the request needs to be retried on a fresh
connection. Test 64 broke with 'multi-always-internally'.
lib/multi.c