nic-chen opened a new pull request #3105:
URL: https://github.com/apache/apisix/pull/3105


   ### What this PR does / why we need it:
   <!--- Why is this change required? What problem does it solve? -->
   
   A new feature has been added in OpenResty 1.19.3.1:
   `Shared ngx.ctx among SSL_* phases and the following phases.`
   
   In the ssl phase, ctx is created but not cleared. 
   
   In the access phase, it is judged that if ctx already exists, it will not be 
created. 
   
   This causes a same client to access an `https` service and then access 
another `http` service, it will be reused the previous ctx, resulting in this 
bug.
   
   
   <!--- If it fixes an open issue, please link to the issue here. -->
   fix #3079
   
   ### Pre-submission checklist:
   
   * [x] Did you explain what problem does this PR solve? Or what new features 
have been added?
   * [ ] Have you added corresponding test cases?
          we could add test cases later for quick fix. we could track it by 
#3103  
   * [ ] Have you modified the corresponding document?
          we don't need to modify docs for this change.
   * [x] Is this PR backward compatible? **If it is not backward compatible, 
please discuss on the [mailing 
list](https://github.com/apache/apisix/tree/master#community) first**
   


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


Reply via email to