"Fossies" - the Fresh Open Source Software Archive

Member "varnish-6.3.1/bin/varnishtest/tests/a00013.vtc" (11 Oct 2019, 900 Bytes) of package /linux/www/varnish-6.3.1.tgz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 varnishtest "Barrier operations"
    2 
    3 # same as a00008.vtc, with socket barriers instead
    4 
    5 # bs -> server, bc -> client, bb -> both
    6 barrier bs sock 4
    7 barrier bc sock 4
    8 barrier bb sock 4 -cyclic
    9 
   10 server s1 {
   11 	rxreq
   12 	barrier bs sync
   13 	barrier bb sync
   14 	delay .9
   15 	txresp
   16 } -start
   17 
   18 server s2 {
   19 	rxreq
   20 	barrier bs sync
   21 	barrier bb sync
   22 	delay .6
   23 	txresp
   24 } -start
   25 
   26 server s3 {
   27 	rxreq
   28 	barrier bs sync
   29 	barrier bb sync
   30 	delay .2
   31 	txresp
   32 } -start
   33 
   34 client c1 -connect ${s1_sock} {
   35 	delay .2
   36 	txreq
   37 	rxresp
   38 	barrier bc sync
   39 	barrier bb sync
   40 } -start
   41 
   42 client c2 -connect ${s2_sock} {
   43 	delay .6
   44 	txreq
   45 	rxresp
   46 	barrier bc sync
   47 	barrier bb sync
   48 } -start
   49 
   50 client c3 -connect ${s3_sock} {
   51 	delay .9
   52 	txreq
   53 	rxresp
   54 	barrier bc sync
   55 	barrier bb sync
   56 } -start
   57 
   58 # Wait for all servers to have received requests
   59 barrier bs sync
   60 barrier bb sync
   61 
   62 # Wait for all clients to have received responses
   63 barrier bc sync
   64 barrier bb sync