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
3f3a38f9
Commit
3f3a38f9
authored
17 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
Fix issue related with the use of ares_timeout() result.
parent
4bf28cb9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGES
+2
-0
2 additions, 0 deletions
CHANGES
RELEASE-NOTES
+1
-0
1 addition, 0 deletions
RELEASE-NOTES
lib/hostares.c
+5
-4
5 additions, 4 deletions
lib/hostares.c
with
8 additions
and
4 deletions
CHANGES
+
2
−
0
View file @
3f3a38f9
...
...
@@ -7,6 +7,8 @@
Changelog
Daniel S (3 October 2007)
- Yang Tse, fix issue related with the use of ares_timeout() result.
- Alexey Pesternikov introduced CURLOPT_OPENSOCKETFUNCTION and
CURLOPT_OPENSOCKETDATA to set a callback that allows an application to
replace the socket() call used by libcurl. It basically allows the app to
...
...
This diff is collapsed.
Click to expand it.
RELEASE-NOTES
+
1
−
0
View file @
3f3a38f9
...
...
@@ -33,6 +33,7 @@ This release includes the following bugfixes:
o re-used handle transfers with SFTP
o curl_easy_escape() problem with byte values >= 128
o handles chunked-encoded CONNECT responses
o misuse of ares_timeout() result
This release includes the following known bugs:
...
...
This diff is collapsed.
Click to expand it.
lib/hostares.c
+
5
−
4
View file @
3f3a38f9
...
...
@@ -109,7 +109,8 @@ int Curl_resolv_getsock(struct connectdata *conn,
{
struct
timeval
maxtime
;
struct
timeval
timeout
;
struct
timeval
timebuf
;
struct
timeval
*
timeout
;
int
max
=
ares_getsock
(
conn
->
data
->
state
.
areschannel
,
(
int
*
)
socks
,
numsocks
);
...
...
@@ -117,10 +118,10 @@ int Curl_resolv_getsock(struct connectdata *conn,
maxtime
.
tv_sec
=
CURL_TIMEOUT_RESOLVE
;
maxtime
.
tv_usec
=
0
;
ares_timeout
(
conn
->
data
->
state
.
areschannel
,
&
maxtime
,
&
time
out
);
timeout
=
ares_timeout
(
conn
->
data
->
state
.
areschannel
,
&
maxtime
,
&
time
buf
);
Curl_expire
(
conn
->
data
,
(
timeout
.
tv_sec
*
1000
)
+
(
timeout
.
tv_usec
/
1000
)
);
(
timeout
->
tv_sec
*
1000
)
+
(
timeout
->
tv_usec
/
1000
));
return
max
;
}
...
...
@@ -254,7 +255,7 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
tvp
=
ares_timeout
(
data
->
state
.
areschannel
,
&
store
,
&
tv
);
/* use the timeout period ares returned to us above */
ares_waitperform
(
conn
,
tv
.
tv_sec
*
1000
+
tv
.
tv_usec
/
1000
);
ares_waitperform
(
conn
,
tv
p
->
tv_sec
*
1000
+
tv
p
->
tv_usec
/
1000
);
if
(
conn
->
async
.
done
)
break
;
...
...
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