cmcfarlen opened a new issue, #11724:
URL: https://github.com/apache/trafficserver/issues/11724

   If multiple ssl related config files are changed and then `traffic_ctl 
config reload` is executed, the ssl config will reload multiple times.
   
   Reproduction:
   
   1. Run traffic_server with a sni.yaml and ssl_multicert.config file 
configured
   2. touch sni.yaml
   3. `traffic_ctl config reload`
   4. Observerve the log output:
   ```
   [Aug 20 13:59:35.145] [ET_TASK 0] NOTE: /opt/ats/etc/trafficserver/sni.yaml 
loading ...
   [Aug 20 13:59:35.147] [ET_TASK 0] NOTE: /opt/ats/etc/trafficserver/sni.yaml 
finished loading
   [Aug 20 13:59:35.147] [ET_TASK 0] NOTE: ssl_multicert.config loading ...
   [Aug 20 13:59:35.158] [ET_TASK 0] NOTE: 
/opt/ats/etc/trafficserver/ssl_multicert.config finished loading
   ```
   5. touch sni.yaml and ssl_multicert.config files
   6. `traffic_ctl config reload`
   7. Observer the log output:
   ```
   [Aug 20 13:59:53.154] [ET_TASK 0] NOTE: /opt/ats/etc/trafficserver/sni.yaml 
loading ...
   [Aug 20 13:59:53.156] [ET_TASK 0] NOTE: /opt/ats/etc/trafficserver/sni.yaml 
finished loading
   [Aug 20 13:59:53.156] [ET_TASK 0] NOTE: ssl_multicert.config loading ...
   [Aug 20 13:59:53.166] [ET_TASK 0] NOTE: 
/opt/ats/etc/trafficserver/ssl_multicert.config finished loading
   [Aug 20 13:59:53.166] [ET_TASK 0] NOTE: /opt/ats/etc/trafficserver/sni.yaml 
loading ...
   [Aug 20 13:59:53.167] [ET_TASK 0] NOTE: /opt/ats/etc/trafficserver/sni.yaml 
finished loading
   [Aug 20 13:59:53.168] [ET_TASK 0] NOTE: ssl_multicert.config loading ...
   [Aug 20 13:59:53.174] [ET_TASK 0] NOTE: 
/opt/ats/etc/trafficserver/ssl_multicert.config finished loading
   ```
   
   This happens because the callbacks setup in SSLClientCoordinator are 
independently attached and so the reconfigure function will be called for every 
updated config item specified.
   
   This happens on the master branch, but also for 9.2.x
   
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscr...@trafficserver.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to