maskit commented on a change in pull request #7063:
URL: https://github.com/apache/trafficserver/pull/7063#discussion_r462732167
##########
File path: tests/gold_tests/autest-site/trafficserver.test.ext
##########
@@ -304,15 +304,23 @@ def MakeATSProcess(obj, name, command='traffic_server',
select_ports=True,
'proxy.config.http.cache.http': 0
})
+ if enable_quic:
+ p.Disk.records_config.update({
+ 'proxy.config.udp.threads': 1,
+ })
+
# The following message was added so that tests and users can know when
# Traffic Server is ready to both receive and optimize traffic.
p.Ready = When.FileContains(p.Disk.diags_log.AbsPath, "NOTE: Traffic
Server is fully initialized")
if select_ports:
# default config
- port_str = "{port} {v6_port}:ipv6 ".format(port=p.Variables.port,
v6_port=p.Variables.portv6)
+ port_str = "{port} {v6_port}:ipv6".format(port=p.Variables.port,
v6_port=p.Variables.portv6)
if enable_tls:
- port_str += "{ssl_port}:ssl {ssl_portv6}:ssl:ipv6".format(
+ port_str += " {ssl_port}:ssl {ssl_portv6}:ssl:ipv6".format(
+ ssl_port=p.Variables.ssl_port,
ssl_portv6=p.Variables.ssl_portv6)
+ if enable_quic:
+ port_str += " {ssl_port}:quic {ssl_portv6}:quic:ipv6".format(
Review comment:
I reused ssl port *number* for QUIC. If the port number was 2000 (random
number), both TCP 2000 and UDP 2000 would open.
##########
File path: tests/gold_tests/timeout/active_timeout.test.py
##########
@@ -60,3 +60,8 @@
tr3= Test.AddTestRun("tr")
tr3.Processes.Default.Command = 'curl -k -i --http2
https://127.0.0.1:{0}/file'.format(ts.Variables.ssl_port)
tr3.Processes.Default.Streams.stdout = Testers.ContainsExpression("Activity
Timeout", "Request should fail with active timeout")
+
+if Condition.HasCurlFeature('http3'):
Review comment:
This also needs to check HasATSFeature('http3').
##########
File path: tests/gold_tests/autest-site/trafficserver.test.ext
##########
@@ -304,15 +304,23 @@ def MakeATSProcess(obj, name, command='traffic_server',
select_ports=True,
'proxy.config.http.cache.http': 0
})
+ if enable_quic:
+ p.Disk.records_config.update({
+ 'proxy.config.udp.threads': 1,
+ })
+
# The following message was added so that tests and users can know when
# Traffic Server is ready to both receive and optimize traffic.
p.Ready = When.FileContains(p.Disk.diags_log.AbsPath, "NOTE: Traffic
Server is fully initialized")
if select_ports:
# default config
- port_str = "{port} {v6_port}:ipv6 ".format(port=p.Variables.port,
v6_port=p.Variables.portv6)
+ port_str = "{port} {v6_port}:ipv6".format(port=p.Variables.port,
v6_port=p.Variables.portv6)
if enable_tls:
- port_str += "{ssl_port}:ssl {ssl_portv6}:ssl:ipv6".format(
+ port_str += " {ssl_port}:ssl {ssl_portv6}:ssl:ipv6".format(
+ ssl_port=p.Variables.ssl_port,
ssl_portv6=p.Variables.ssl_portv6)
+ if enable_quic:
+ port_str += " {ssl_port}:quic {ssl_portv6}:quic:ipv6".format(
Review comment:
I reused ssl port *number* for QUIC. If the port number was 2000 (random
number), both TCP 2000 and UDP 2000 would open (if both enable_tls and
enable_quic are true).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]