Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
ngtcp2
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
Kashyap Thimmaraju
ngtcp2
Commits
c60c5451
There was an error fetching the commit references. Please try again later.
Commit
c60c5451
authored
4 years ago
by
Kashyap Thimmaraju
Browse files
Options
Downloads
Patches
Plain Diff
quic-testing changes
parent
dfe3771d
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docker/Dockerfile
+1
-1
1 addition, 1 deletion
docker/Dockerfile
interop/Dockerfile
+2
-0
2 additions, 0 deletions
interop/Dockerfile
interop/run_endpoint.sh
+61
-60
61 additions, 60 deletions
interop/run_endpoint.sh
with
64 additions
and
61 deletions
docker/Dockerfile
+
1
−
1
View file @
c60c5451
...
@@ -35,4 +35,4 @@ FROM gcr.io/distroless/cc-debian10
...
@@ -35,4 +35,4 @@ FROM gcr.io/distroless/cc-debian10
COPY
--from=build /usr/local/bin/client /usr/local/bin/server /usr/local/bin/
COPY
--from=build /usr/local/bin/client /usr/local/bin/server /usr/local/bin/
COPY
--from=build /etc/mime.types /etc/
COPY
--from=build /etc/mime.types /etc/
CMD
["/usr/local/bin/client"
]
ENTRYPOINT
[ "./run_endpoint.sh"
]
This diff is collapsed.
Click to expand it.
interop/Dockerfile
+
2
−
0
View file @
c60c5451
...
@@ -27,5 +27,7 @@ RUN apt-get update && \
...
@@ -27,5 +27,7 @@ RUN apt-get update && \
COPY
run_endpoint.sh .
COPY
run_endpoint.sh .
COPY
server.key server.crt /etc/ngtcp2/
COPY
server.key server.crt /etc/ngtcp2/
RUN
mkdir
/logs
RUN
mkdir
/www
RUN
chmod
+x run_endpoint.sh
RUN
chmod
+x run_endpoint.sh
ENTRYPOINT
[ "./run_endpoint.sh" ]
ENTRYPOINT
[ "./run_endpoint.sh" ]
This diff is collapsed.
Click to expand it.
interop/run_endpoint.sh
+
61
−
60
View file @
c60c5451
#!/bin/bash
#!/bin/bash
# Set up the routing needed for the simulation
# Set up the routing needed for the simulation
/setup.sh
#
/setup.sh
# The following variables are available for use:
# The following variables are available for use:
# - ROLE contains the role of this execution context, client or server
# - ROLE contains the role of this execution context, client or server
# - SERVER_PARAMS contains user-supplied command line parameters
# - SERVER_PARAMS contains user-supplied command line parameters
# - CLIENT_PARAMS contains user-supplied command line parameters
# - CLIENT_PARAMS contains user-supplied command line parameters
case
$TESTCASE
in
#
case $TESTCASE in
versionnegotiation|handshake|transfer|retry|resumption|http3|multiconnect|zerortt|chacha20
)
#
versionnegotiation|handshake|transfer|retry|resumption|http3|multiconnect|zerortt|chacha20)
:
#
:
;;
#
;;
*
)
#
*)
exit
127
#
exit 127
;;
#
;;
esac
#
esac
LOG
=
/logs/log.txt
#if [ "$ROLE" == "client" ]; then
# # Wait for the simulator to start up.
if
[
"
$ROLE
"
==
"client"
]
;
then
# /wait-for-it.sh sim:57832 -s -t 30
# Wait for the simulator to start up.
# if [ "$TESTCASE" == "http3" ]; then
/wait-for-it.sh sim:57832
-s
-t
30
# CLIENT_BIN="/usr/local/bin/client"
if
[
"
$TESTCASE
"
==
"http3"
]
;
then
# else
CLIENT_BIN
=
"/usr/local/bin/client"
# CLIENT_BIN="/usr/local/bin/h09client"
else
# fi
CLIENT_BIN
=
"/usr/local/bin/h09client"
# CLIENT_ARGS="server 443 --download /downloads -s --no-quic-dump --no-http-dump --exit-on-all-streams-close --qlog-dir $QLOGDIR"
fi
# if [ "$TESTCASE" == "versionnegotiation" ]; then
CLIENT_ARGS
=
"server 443 --download /downloads -s --no-quic-dump --no-http-dump --exit-on-all-streams-close --qlog-dir
$QLOGDIR
"
# CLIENT_ARGS="$CLIENT_ARGS -v 0xaaaaaaaa"
if
[
"
$TESTCASE
"
==
"versionnegotiation"
]
;
then
# fi
CLIENT_ARGS
=
"
$CLIENT_ARGS
-v 0xaaaaaaaa"
# if [ "$TESTCASE" == "chacha20" ]; then
fi
# CLIENT_ARGS="$CLIENT_ARGS --ciphers=TLS_CHACHA20_POLY1305_SHA256"
if
[
"
$TESTCASE
"
==
"chacha20"
]
;
then
# fi
CLIENT_ARGS
=
"
$CLIENT_ARGS
--ciphers=TLS_CHACHA20_POLY1305_SHA256"
# if [ "$TESTCASE" == "resumption" ] || [ "$TESTCASE" == "zerortt" ]; then
fi
# CLIENT_ARGS="$CLIENT_ARGS --session-file session.txt --tp-file tp.txt"
if
[
"
$TESTCASE
"
==
"resumption"
]
||
[
"
$TESTCASE
"
==
"zerortt"
]
;
then
# if [ "$TESTCASE" == "resumption" ]; then
CLIENT_ARGS
=
"
$CLIENT_ARGS
--session-file session.txt --tp-file tp.txt"
# CLIENT_ARGS="$CLIENT_ARGS --disable-early-data"
if
[
"
$TESTCASE
"
==
"resumption"
]
;
then
# fi
CLIENT_ARGS
=
"
$CLIENT_ARGS
--disable-early-data"
# REQS=($REQUESTS)
fi
# REQUESTS=${REQS[0]}
REQS
=(
$REQUESTS
)
# $CLIENT_BIN $CLIENT_ARGS $REQUESTS $CLIENT_PARAMS &> $LOG
REQUESTS
=
${
REQS
[0]
}
# REQUESTS=${REQS[@]:1}
$CLIENT_BIN
$CLIENT_ARGS
$REQUESTS
$CLIENT_PARAMS
&>
$LOG
# $CLIENT_BIN $CLIENT_ARGS $REQUESTS $CLIENT_PARAMS &>> $LOG
REQUESTS
=
${
REQS
[@]
:1
}
# elif [ "$TESTCASE" == "multiconnect" ]; then
$CLIENT_BIN
$CLIENT_ARGS
$REQUESTS
$CLIENT_PARAMS
&>>
$LOG
# CLIENT_ARGS="$CLIENT_ARGS --timeout=180s"
elif
[
"
$TESTCASE
"
==
"multiconnect"
]
;
then
# for REQ in $REQUESTS; do
CLIENT_ARGS
=
"
$CLIENT_ARGS
--timeout=180s"
# echo "multiconnect REQ: $REQ" >> $LOG
for
REQ
in
$REQUESTS
;
do
# $CLIENT_BIN $CLIENT_ARGS $REQ $CLIENT_PARAMS &>> $LOG
echo
"multiconnect REQ:
$REQ
"
>>
$LOG
# done
$CLIENT_BIN
$CLIENT_ARGS
$REQ
$CLIENT_PARAMS
&>>
$LOG
# else
done
# $CLIENT_BIN $CLIENT_ARGS $REQUESTS $CLIENT_PARAMS &> $LOG
else
# fi
$CLIENT_BIN
$CLIENT_ARGS
$REQUESTS
$CLIENT_PARAMS
&>
$LOG
#elif [ "$ROLE" == "server" ]; then
fi
# if [ "$TESTCASE" == "http3" ]; then
elif
[
"
$ROLE
"
==
"server"
]
;
then
# SERVER_BIN="/usr/local/bin/server"
if
[
"
$TESTCASE
"
==
"http3"
]
;
then
# else
SERVER_BIN
=
"/usr/local/bin/server"
# SERVER_BIN="/usr/local/bin/h09server"
else
# fi
SERVER_BIN
=
"/usr/local/bin/h09server"
# SERVER_ARGS="0.0.0.0 443 /etc/ngtcp2/server.key /etc/ngtcp2/server.crt -s -d /www --qlog-dir $QLOGDIR"
fi
# if [ "$TESTCASE" == "retry" ]; then
SERVER_ARGS
=
"0.0.0.0 443 /etc/ngtcp2/server.key /etc/ngtcp2/server.crt -s -d /www --qlog-dir
$QLOGDIR
"
# SERVER_ARGS="$SERVER_ARGS -V"
if
[
"
$TESTCASE
"
==
"retry"
]
;
then
# elif [ "$TESTCASE" == "multiconnect" ]; then
SERVER_ARGS
=
"
$SERVER_ARGS
-V"
# SERVER_ARGS="$SERVER_ARGS --timeout=180s"
elif
[
"
$TESTCASE
"
==
"multiconnect"
]
;
then
# fi
SERVER_ARGS
=
"
$SERVER_ARGS
--timeout=180s"
#
fi
# $SERVER_BIN $SERVER_ARGS $SERVER_PARAMS &> $LOG
#fi
$SERVER_BIN
$SERVER_ARGS
$SERVER_PARAMS
&>
$LOG
SERVER_BIN
=
"/usr/local/bin/server"
fi
SERVER_ARGS
=
"0.0.0.0 4433 /etc/ngtcp2/server.key /etc/ngtcp2/server.crt -s -d /www --qlog-dir /logs"
$SERVER_BIN
$SERVER_ARGS
>
/tmp/server.out
This diff is collapsed.
Click to expand it.
Preview
0%
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