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
1d95109f
Commit
1d95109f
authored
17 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
Revert sockfilt.c back to revision 1.42
Changes introduced in revision 1.43 were useless
parent
e9bb7b77
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
+5
-19
5 additions, 19 deletions
tests/server/sockfilt.c
with
5 additions
and
19 deletions
tests/server/sockfilt.c
+
5
−
19
View file @
1d95109f
...
...
@@ -164,7 +164,6 @@ static bool juggle(curl_socket_t *sockfdp,
curl_socket_t
listenfd
,
enum
sockmode
*
mode
)
{
struct
timeval
initial_tv
;
struct
timeval
timeout
;
fd_set
fds_read
;
fd_set
fds_write
;
...
...
@@ -176,8 +175,6 @@ static bool juggle(curl_socket_t *sockfdp,
ssize_t
nread_socket
;
ssize_t
bytes_written
;
ssize_t
buffer_len
;
long
pending_ms
;
long
timeout_ms
=
120
*
1000
;
/* 'buffer' is this excessively large only to be able to support things like
test 1003 which tests exceedingly large server response lines */
...
...
@@ -191,6 +188,9 @@ static bool juggle(curl_socket_t *sockfdp,
return
FALSE
;
#endif
timeout
.
tv_sec
=
120
;
timeout
.
tv_usec
=
0
;
FD_ZERO
(
&
fds_read
);
FD_ZERO
(
&
fds_write
);
FD_ZERO
(
&
fds_err
);
...
...
@@ -246,23 +246,9 @@ static bool juggle(curl_socket_t *sockfdp,
}
/* switch(*mode) */
pending_ms
=
timeout_ms
;
initial_tv
=
curlx_tvnow
();
do
{
timeout
.
tv_sec
=
pending_ms
/
1000
;
timeout
.
tv_usec
=
(
pending_ms
%
1000
)
*
1000
;
rc
=
select
((
int
)
maxfd
+
1
,
&
fds_read
,
&
fds_write
,
&
fds_err
,
&
timeout
);
if
(
rc
!=
-
1
)
break
;
if
(
SOCKERRNO
!=
EINTR
)
break
;
pending_ms
=
timeout_ms
-
curlx_tvdiff
(
curlx_tvnow
(),
initial_tv
);
if
(
pending_ms
<=
0
)
{
rc
=
0
;
break
;
}
}
while
(
rc
==
-
1
);
rc
=
select
(
maxfd
+
1
,
&
fds_read
,
&
fds_write
,
&
fds_err
,
&
timeout
);
}
while
((
rc
==
-
1
)
&&
(
SOCKERRNO
==
EINTR
));
switch
(
rc
)
{
case
-
1
:
...
...
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