Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
c50858f2
Commit
c50858f2
authored
Jan 28, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wait 10 seconds for a client connection
parent
30f4123c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
vtc_client.c
bin/varnishtest/vtc_client.c
+2
-6
No files found.
bin/varnishtest/vtc_client.c
View file @
c50858f2
...
@@ -77,7 +77,6 @@ client_thread(void *priv)
...
@@ -77,7 +77,6 @@ client_thread(void *priv)
struct
client
*
c
;
struct
client
*
c
;
struct
vtclog
*
vl
;
struct
vtclog
*
vl
;
int
fd
;
int
fd
;
int
i
;
unsigned
u
;
unsigned
u
;
struct
vsb
*
vsb
;
struct
vsb
*
vsb
;
char
*
p
;
char
*
p
;
...
@@ -99,14 +98,11 @@ client_thread(void *priv)
...
@@ -99,14 +98,11 @@ client_thread(void *priv)
vtc_log
(
vl
,
2
,
"Started (%u iterations)"
,
c
->
repeat
);
vtc_log
(
vl
,
2
,
"Started (%u iterations)"
,
c
->
repeat
);
for
(
u
=
0
;
u
<
c
->
repeat
;
u
++
)
{
for
(
u
=
0
;
u
<
c
->
repeat
;
u
++
)
{
vtc_log
(
vl
,
3
,
"Connect to %s"
,
vsb_data
(
vsb
));
vtc_log
(
vl
,
3
,
"Connect to %s"
,
vsb_data
(
vsb
));
fd
=
VSS_open
(
vsb_data
(
vsb
),
0
);
fd
=
VSS_open
(
vsb_data
(
vsb
),
10
.);
for
(
i
=
0
;
fd
<
0
&&
i
<
3
;
i
++
)
{
(
void
)
sleep
(
1
);
fd
=
VSS_open
(
vsb_data
(
vsb
),
0
);
}
if
(
fd
<
0
)
if
(
fd
<
0
)
vtc_log
(
c
->
vl
,
0
,
"Failed to open %s"
,
vsb_data
(
vsb
));
vtc_log
(
c
->
vl
,
0
,
"Failed to open %s"
,
vsb_data
(
vsb
));
assert
(
fd
>=
0
);
assert
(
fd
>=
0
);
TCP_blocking
(
fd
);
TCP_myname
(
fd
,
mabuf
,
sizeof
mabuf
,
mpbuf
,
sizeof
mpbuf
);
TCP_myname
(
fd
,
mabuf
,
sizeof
mabuf
,
mpbuf
,
sizeof
mpbuf
);
vtc_log
(
vl
,
3
,
"connected fd %d from %s %s to %s"
,
vtc_log
(
vl
,
3
,
"connected fd %d from %s %s to %s"
,
fd
,
mabuf
,
mpbuf
,
vsb_data
(
vsb
));
fd
,
mabuf
,
mpbuf
,
vsb_data
(
vsb
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment