quiche-server.sh 936 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. #
  3. # Copyright 2023 The OpenSSL Project Authors. All Rights Reserved.
  4. #
  5. # Licensed under the Apache License 2.0 (the "License"). You may not use
  6. # this file except in compliance with the License. You can obtain a copy
  7. # in the file LICENSE in the source distribution or at
  8. # https://www.openssl.org/source/license.html
  9. #
  10. # Run the quiche server
  11. #
  12. set -e
  13. SRCTOP="$(cd $SRCTOP; pwd)"
  14. BLDTOP="$(cd $BLDTOP; pwd)"
  15. echo "------------------------------------------------------------------"
  16. echo "Running Cloudflare quiche-server"
  17. echo "------------------------------------------------------------------"
  18. QUICHE_TARGET_PATH="$BLDTOP/quiche"
  19. test -d "$QUICHE_TARGET_PATH" || exit 1
  20. "$QUICHE_TARGET_PATH/debug/quiche-server" --cert "$SRCTOP/test/certs/servercert.pem" \
  21. --key "$SRCTOP/test/certs/serverkey.pem" --disable-gso \
  22. --http-version HTTP/0.9 --root "$SRCTOP" --no-grease --disable-hystart &
  23. echo $! >server.pid