Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 2.82 KB

SERVER_GUIDE.md

File metadata and controls

49 lines (40 loc) · 2.82 KB

QUIC server

QUIC server options
% ./quic_thread_server --help
Usage: quic_thread_server [options]
options:
-h, --help                     show this help message and exit
--quic_port=<port>             specify the quic port number to listen on
--proxy_timeout=<second>       specify timeout duration to avoid a proxy
                               response
--worker_count=<count>         specify the worker thread count
--dispatch_continuity=<count>  specify the dispatch continuity count
                               range [1, 32], default is 16
--send_buffer_size=<size>      specify the send buffer size
                               default size was 1452 * 30
--recv_buffer_size=<size>      specify the recv buffer size
                               default size was 256kb
--daemon                       daemonize a process
--stop                         stop a quic damon process
--proxy_pass=<url>             reverse proxy url
                               example: http://example.com:8080
--config=<config_file_path>    specify the quic server config file path
--keyfile=<key_file_path>      specify the ssl key file path
--certfile=<cert_file_path>    specify the ssl certificate file path
--bind_address=<ip>            specify the udp socket bind ip address
--log_dir=<log_dir>            specift the logging directory
--logging                      turn on files base logging
                               (default was turned off)

QUIC Discovery

To use the QUIC server, you must understand QUIC Discovery.

To use QUIC Discovery, you need to specify the "Alternative Service" option in an HTTP request header as follows:

Alt-Svc: quic="[<hostname>|]:<port>"; p="1"; ma=<seconds>
  • "hostname" is a QUIC server host. If left blank, the original HTTP/TCP server host is used.
  • "port" is a QUIC server UDP port to be accessed by QUIC Discovery.
  • "ma" (Max-Age) is the number of seconds Alt-Svc header values are cached and thus usable.

Note that only the default values (p="1" and ma="604800", where "604800" = 7 days) are permitted in the current version (2015-09-08). You cannot modify the probability and the "ma" parameter with this version.

For detailed information, please refer to the QUIC Discovery docs provided by Google.