Bug report #1888932 (http://curl.haxx.se/bug/view.cgi?id=1888932) points
out and provides test program that demonstrates that libcurl might not set error description message for error CURLE_COULDNT_RESOLVE_HOST for Windows threaded name resolver builds. Fixed now.
This commit is contained in:
6
CHANGES
6
CHANGES
@@ -6,6 +6,12 @@
|
|||||||
|
|
||||||
Changelog
|
Changelog
|
||||||
|
|
||||||
|
Yang Tse (10 Feb 2008)
|
||||||
|
- Bug report #1888932 (http://curl.haxx.se/bug/view.cgi?id=1888932) points out
|
||||||
|
and provides test program that demonstrates that libcurl might not set error
|
||||||
|
description message for error CURLE_COULDNT_RESOLVE_HOST for Windows threaded
|
||||||
|
name resolver builds. Fixed now.
|
||||||
|
|
||||||
Daniel Fandrich (8 Feb 2007)
|
Daniel Fandrich (8 Feb 2007)
|
||||||
- Added key words to all SSL-using tests so they can be skipped if necessary.
|
- Added key words to all SSL-using tests so they can be skipped if necessary.
|
||||||
Removed a few unnecessary requires SSL statements.
|
Removed a few unnecessary requires SSL statements.
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ This release includes the following bugfixes:
|
|||||||
o improved pipelining
|
o improved pipelining
|
||||||
o improved strdup replacement
|
o improved strdup replacement
|
||||||
o GnuTLS-built libcurl failed when doing global cleanup and reinit
|
o GnuTLS-built libcurl failed when doing global cleanup and reinit
|
||||||
|
o error message problem when unable to resolve a host on Windows
|
||||||
|
|
||||||
This release includes the following known bugs:
|
This release includes the following known bugs:
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -682,6 +682,8 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
|
|||||||
CURLcode Curl_is_resolved(struct connectdata *conn,
|
CURLcode Curl_is_resolved(struct connectdata *conn,
|
||||||
struct Curl_dns_entry **entry)
|
struct Curl_dns_entry **entry)
|
||||||
{
|
{
|
||||||
|
struct SessionHandle *data = conn->data;
|
||||||
|
|
||||||
*entry = NULL;
|
*entry = NULL;
|
||||||
|
|
||||||
if(conn->async.done) {
|
if(conn->async.done) {
|
||||||
@@ -689,6 +691,8 @@ CURLcode Curl_is_resolved(struct connectdata *conn,
|
|||||||
Curl_destroy_thread_data(&conn->async);
|
Curl_destroy_thread_data(&conn->async);
|
||||||
if(!conn->async.dns) {
|
if(!conn->async.dns) {
|
||||||
TRACE(("Curl_is_resolved(): CURLE_COULDNT_RESOLVE_HOST\n"));
|
TRACE(("Curl_is_resolved(): CURLE_COULDNT_RESOLVE_HOST\n"));
|
||||||
|
failf(data, "Could not resolve host: %s; %s",
|
||||||
|
conn->host.name, Curl_strerror(conn, conn->async.status));
|
||||||
return CURLE_COULDNT_RESOLVE_HOST;
|
return CURLE_COULDNT_RESOLVE_HOST;
|
||||||
}
|
}
|
||||||
*entry = conn->async.dns;
|
*entry = conn->async.dns;
|
||||||
|
|||||||
Reference in New Issue
Block a user