Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
7a710b49
Commit
7a710b49
authored
18 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
Jeff helped me pinpoint that we didn't properly set the expire timer during
c-ares name resolves, but now we do!
parent
0bb20cc6
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/hostares.c
+12
-0
12 additions, 0 deletions
lib/hostares.c
with
12 additions
and
0 deletions
lib/hostares.c
+
12
−
0
View file @
7a710b49
...
...
@@ -75,6 +75,7 @@
#include
"share.h"
#include
"strerror.h"
#include
"url.h"
#include
"multiif.h"
#include
"connect.h"
/* for the Curl_sockerrno() proto */
#define _MPRINTF_REPLACE
/* use our functions only */
...
...
@@ -109,9 +110,20 @@ int Curl_resolv_getsock(struct connectdata *conn,
int
numsocks
)
{
struct
timeval
maxtime
;
struct
timeval
timeout
;
int
max
=
ares_getsock
(
conn
->
data
->
state
.
areschannel
,
(
int
*
)
socks
,
numsocks
);
maxtime
.
tv_sec
=
CURL_TIMEOUT_RESOLVE
;
maxtime
.
tv_usec
=
0
;
ares_timeout
(
conn
->
data
->
state
.
areschannel
,
&
maxtime
,
&
timeout
);
Curl_expire
(
conn
->
data
,
(
timeout
.
tv_sec
*
1000
)
+
(
timeout
.
tv_usec
/
1000
)
);
return
max
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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