cURL / Mailing Lists / curl-library / Single Mail

curl-library

PATCH: Do not allow multi interface to block trying to perform DNS on interface names

From: Jason Glasgow <jglasgow_at_google.com>
Date: Thu, 3 Nov 2011 23:10:43 -0400

The following patch fixes a bug in which calling the multi-interfaces will
block. The multi-interfaces should never block, but if you supply an
interface name as an INTERFACE option and the interface disappears between
when you created the request and when it starts executing, the code will
erroneously treat the interface/device name as a name to look up via DNS.
 It then potentially calls Curl_resolver_wait_resolv(), which will block.

This patch allows the user of the API to return an error instead of trying
to do a DNS lookup of an interface name.

-Jason

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2011-11-04