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
0e7203be
Commit
0e7203be
authored
23 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
this fix seems to make the connect fail properly even on IPv4-only Linux
machines!
parent
52dbc96c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/connect.c
+11
-3
11 additions, 3 deletions
lib/connect.c
with
11 additions
and
3 deletions
lib/connect.c
+
11
−
3
View file @
0e7203be
...
...
@@ -309,9 +309,8 @@ static CURLcode bindlocal(struct connectdata *conn,
return
CURLE_HTTP_PORT_FAILED
;
}
#e
lse
/* end of ipv4-specific section */
#e
ndif
/* end of ipv4-specific section */
/* we only use socketerror() on IPv6-enabled machines */
static
int
socketerror
(
int
sockfd
)
{
...
...
@@ -324,7 +323,6 @@ int socketerror(int sockfd)
return
err
;
}
#endif
/*
* TCP connect to the given host with timeout, proxy or remote doesn't matter.
...
...
@@ -525,6 +523,16 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
}
}
if
(
0
==
rc
)
{
int
err
=
socketerror
(
sockfd
);
if
((
0
==
err
)
||
(
EISCONN
==
err
))
{
/* we are connected, awesome! */
break
;
}
/* nope, not connected for real */
rc
=
-
1
;
}
if
(
0
!=
rc
)
{
/* get a new timeout for next attempt */
after
=
Curl_tvnow
();
...
...
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