"Fossies" - the Fresh Open Source Software Archive

Member "hitch-1.5.2/src/tests/test15-proxy-v2-npn.sh" (27 Aug 2019, 581 Bytes) of package /linux/www/hitch-1.5.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "test15-proxy-v2-npn.sh": 1.4.8_vs_1.5.0.

    1 #!/bin/sh
    2 
    3 . hitch_test.sh
    4 
    5 BACKENDPORT=$(expr $LISTENPORT + 1500)
    6 
    7 parse_proxy_v2 $BACKENDPORT >proxy.dump &
    8 
    9 start_hitch \
   10     --backend=[127.0.0.1]:$BACKENDPORT \
   11     --frontend="[localhost]:$LISTENPORT" \
   12     --write-proxy-v2 \
   13     --alpn-protos="h2,h2-14,http/1.1" \
   14     ${CERTSDIR}/site1.example.com
   15 
   16 sleep 0.1
   17 
   18 # If you have nghttp installed, you can try it instead of openssl s_client:
   19 # nghttp -v "https://localhost:$LISTENPORT"
   20 
   21 s_client -tls1_2 -nextprotoneg 'h2-14' >s_client.dump
   22 
   23 ! grep ERROR proxy.dump
   24 
   25 run_cmd grep -q h2-14 proxy.dump
   26 run_cmd grep -q "ALPN extension" proxy.dump