~rousskov/squid/DynamicSslCert

Viewing all changes in revision 9339.

  • Committer: Alex Rousskov
  • Date: 2008-11-10 23:39:08 UTC
  • Revision ID: rousskov@measurement-factory.com-20081110233908-kw16z02fz07msj3x
Added fde::dynamicSslContext to store the dynamic context pointer and delete
the context when the descriptor is being closed. We use a similar trick for
the SSL session in fde::ssl.

It is not 100% clear to me why it is safe to store a pointer in two places and
delete it in one, but apparently there are no situations where the core code
uses the SSL pointer after closing the descriptor. If there are such cases,
we should refcount the corresponding SSL objects.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: