Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
0ffec427
Commit
0ffec427
authored
21 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
the missing part of Gisle Vanem's connect-timeout fix for win32
parent
ea4cd4d8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/url.c
+3
-2
3 additions, 2 deletions
lib/url.c
lib/urldata.h
+3
-2
3 additions, 2 deletions
lib/urldata.h
with
6 additions
and
4 deletions
lib/url.c
+
3
−
2
View file @
0ffec427
...
...
@@ -1360,9 +1360,10 @@ CURLcode Curl_disconnect(struct connectdata *conn)
Curl_safefree
(
conn
->
allocptr
.
host
);
Curl_safefree
(
conn
->
allocptr
.
cookiehost
);
Curl_safefree
(
conn
->
proxyhost
);
#ifdef
USE_ARES
#if
def
ined(
USE_ARES
) || defined(USE_THREADING_GETHOSTBYNAME)
/* possible left-overs from the async name resolve */
Curl_safefree
(
conn
->
async
.
hostname
);
Curl_safefree
(
conn
->
async
.
os_specific
);
#endif
Curl_free_ssl_config
(
&
conn
->
ssl_config
);
...
...
@@ -3238,7 +3239,7 @@ CURLcode Curl_connect(struct SessionHandle *data,
then a successful name resolve has been received */
CURLcode
Curl_async_resolved
(
struct
connectdata
*
conn
)
{
#ifdef
USE_ARES
#if
def
ined(
USE_ARES
) || defined(USE_THREADING_GETHOSTBYNAME)
CURLcode
code
=
SetupConnection
(
conn
,
conn
->
async
.
dns
);
if
(
code
)
...
...
This diff is collapsed.
Click to expand it.
lib/urldata.h
+
3
−
2
View file @
0ffec427
...
...
@@ -376,13 +376,14 @@ struct Curl_transfer_keeper {
bool
ignorebody
;
/* we read a response-body but we ignore it! */
};
#ifdef
USE_ARES
#if
def
ined(
USE_ARES
) || defined(USE_THREADING_GETHOSTBYNAME)
struct
Curl_async
{
char
*
hostname
;
int
port
;
struct
Curl_dns_entry
*
dns
;
bool
done
;
/* set TRUE when the lookup is complete */
int
status
;
/* if done is TRUE, this is the status from the callback */
void
*
os_specific
;
/* 'struct thread_data' for Windows */
};
#endif
...
...
@@ -566,7 +567,7 @@ struct connectdata {
int
sockerror
;
/* errno stored by Curl_read() if the underlying layer returns
error */
#ifdef
USE_ARES
#if
def
ined(
USE_ARES
) || defined(USE_THREADING_GETHOSTBYNAME)
/* data used for the asynch name resolve callback */
struct
Curl_async
async
;
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment