Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
ae34324d
Commit
ae34324d
authored
Sep 04, 2018
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document -need-bytes and implement an optional '+' prefix to
require new bytes to be received.
parent
d22e7de2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
vtc_process.c
bin/varnishtest/vtc_process.c
+6
-0
No files found.
bin/varnishtest/vtc_process.c
View file @
ae34324d
...
...
@@ -894,6 +894,10 @@ process_close(struct process *p)
* \-writehex HEXSTRING
* Same as -write but interpreted as hexadecimal bytes.
*
* \-need-bytes [+]NUMBER
* Wait until at least NUMBER bytes have been received in total.
* If '+' is prefixed, NUMBER new bytes must be received.
*
* \-expect-text LIN COL PAT
* Wait for PAT to appear at LIN,COL on the virtual screen.
* Lines and columns are numbered 1...N
...
...
@@ -998,6 +1002,8 @@ cmd_process(CMD_ARGS)
}
if
(
!
strcmp
(
*
av
,
"-need-bytes"
))
{
u
=
strtoumax
(
av
[
1
],
NULL
,
0
);
if
(
av
[
1
][
0
]
==
'+'
)
u
+=
p
->
stdout_bytes
;
av
++
;
do
{
AZ
(
pthread_mutex_lock
(
&
p
->
mtx
));
...
...
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