Skip to content

Conversation

@gtenev
Copy link
Contributor

@gtenev gtenev commented Aug 2, 2016

A fix for a problem with SSL hostname verification failing due to truncated SNI name.

SSL hostname verification failing due to truncated SNI name.
@zwoop zwoop added the TLS label Aug 2, 2016
@zwoop zwoop added this to the 7.0.0 milestone Aug 2, 2016
@zwoop zwoop self-assigned this Aug 2, 2016
@zwoop
Copy link
Contributor

zwoop commented Aug 2, 2016

👍

@zwoop
Copy link
Contributor

zwoop commented Aug 2, 2016

I'm generally ok with this for the immediate fixage. My only concern here is that there's now an invariant (it seems) between the client and server HttpHdr, where the caches should be invalidated together for both. That sort of feels like it then could be lifted up in the stack a bit maybe, or at least assertion that the invariant is never broken again.

Alternatively, if there's improvements that can be done here (later) such that the invalidation can be disjoint again, safely, for better performance etc., that'd be cool too. Maybe file a separate lira for this cleanup for later?

@zwoop
Copy link
Contributor

zwoop commented Aug 3, 2016

[approve ci]

@gtenev
Copy link
Contributor Author

gtenev commented Aug 3, 2016

@zwoop thanks for reviewing!

As far as can tell the escalate plugin was implemented later then the HttpHdr caching and the caching implementation does not support its use-case well. The reason we started noticing the truncated/garbage name problems is that SSL handshake changed (got stricter)

This fix is meant to solve the immediate problem of having t_state.hdr_info.server_request cache not being invalidated after the escalate plugin called TSHttpTxnRedirectUrlSet() to retry the request to a secondary origin after the primary origin failed.

This code change would invalidate (only invalidate) client request and server request HttpHdr at the same time only during HttpSM::redirect_request(), the caching state of the 2 objects would not necessarily be kept (or assumed to be) in sync (client request and server request HttpHdr were not meant to be invariant).

Filed Jira: TS-4712 to look into the HttpHdr caching use-cases and verify the HttpHdr caching functionality.

@atsci
Copy link

atsci commented Aug 3, 2016

FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/501/ for details.

@atsci
Copy link

atsci commented Aug 3, 2016

Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/398/ for details.

@zwoop zwoop merged commit b4dbcd3 into apache:master Aug 3, 2016
bneradt added a commit to bneradt/trafficserver that referenced this pull request Feb 6, 2024
…he#837)

Properties percieved a performance degredation when cur_time was made
thread_local. This was likely because each thread had its own cached
version of cur_time and thus didn't get updated as frequently as the
global one used to be. There are ideas about how to address this patch
better, but in the meantime we plan to simply revert the patch.

This reverts commit 371ff9a.
bneradt pushed a commit to bneradt/trafficserver that referenced this pull request Feb 6, 2024
masaori335 pushed a commit to masaori335/trafficserver that referenced this pull request May 29, 2025
* Defer deletion of reloadable remap plugins

* Fix tests, since plugins now remains

* Put the startup cleanup into a try-catch

* Make autest happier during shutdown

(cherry picked from commit 71293ea)

Co-authored-by: Leif Hedstrom <zwoop@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants