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
f90f0c98
Commit
f90f0c98
authored
18 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
Log a message if not all data is sent.
parent
95aecc5d
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
tests/server/sockfilt.c
+7
-1
7 additions, 1 deletion
tests/server/sockfilt.c
with
7 additions
and
1 deletion
tests/server/sockfilt.c
+
7
−
1
View file @
f90f0c98
...
...
@@ -170,6 +170,7 @@ static int juggle(curl_socket_t *sockfdp,
fd_set
fds_err
;
curl_socket_t
maxfd
;
ssize_t
r
;
int
err
;
unsigned
char
buffer
[
256
];
/* FIX: bigger buffer */
char
data
[
256
];
curl_socket_t
sockfd
;
...
...
@@ -300,9 +301,14 @@ static int juggle(curl_socket_t *sockfdp,
logmsg
(
"*** We are disconnected!"
);
write
(
fileno
(
stdout
),
"DISC
\n
"
,
5
);
}
else
else
{
/* send away on the socket */
bytes_written
=
swrite
(
sockfd
,
buffer
,
len
);
if
(
bytes_written
!=
(
ssize_t
)
len
)
{
logmsg
(
"====> Not all data was sent. Bytes to send: %d Bytes sent: %d"
,
len
,
bytes_written
);
}
}
}
else
if
(
!
memcmp
(
"DISC"
,
buffer
,
4
))
{
/* disconnect! */
...
...
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