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
db6dc49b
Commit
db6dc49b
authored
21 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
removed the ip number from the notcpdelay function
parent
593170d1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/connect.c
+4
-5
4 additions, 5 deletions
lib/connect.c
with
4 additions
and
5 deletions
lib/connect.c
+
4
−
5
View file @
db6dc49b
...
...
@@ -478,8 +478,7 @@ CURLcode Curl_is_connected(struct connectdata *conn,
}
static
void
Curl_setNoDelay
(
struct
connectdata
*
conn
,
curl_socket_t
sockfd
,
int
ip
)
curl_socket_t
sockfd
)
{
#ifdef TCP_NODELAY
struct
SessionHandle
*
data
=
conn
->
data
;
...
...
@@ -488,7 +487,7 @@ static void Curl_setNoDelay(struct connectdata *conn,
infof
(
data
,
"Could not set TCP_NODELAY: %s
\n
"
,
Curl_strerror
(
conn
,
Curl_ourerrno
()));
else
infof
(
data
,
"TCP_NODELAY set
for IPv%d
\n
"
,
ip
);
infof
(
data
,
"TCP_NODELAY set
\n
"
);
#else
(
void
)
conn
;
(
void
)
sockfd
;
...
...
@@ -575,7 +574,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
continue
;
else
if
(
data
->
tcp_nodelay
)
Curl_setNoDelay
(
conn
,
sockfd
,
6
);
Curl_setNoDelay
(
conn
,
sockfd
);
#else
/*
* Connecting with old style IPv4-only support
...
...
@@ -596,7 +595,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
}
else
if
(
data
->
tcp_nodelay
)
Curl_setNoDelay
(
conn
,
sockfd
,
4
);
Curl_setNoDelay
(
conn
,
sockfd
);
/* nasty address work before connect can be made */
memset
((
char
*
)
&
serv_addr
,
'\0'
,
sizeof
(
serv_addr
));
...
...
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