You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2017/01/05 22:17:13 UTC

[Bug 59797] Per thread error hash grows indefinitely

https://bz.apache.org/bugzilla/show_bug.cgi?id=59797

--- Comment #8 from NateC <ap...@neworld.us> ---
Created attachment 34597
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34597&action=edit
Native only patch to release ssl errors on thread exit

I took a look at how openssl implemented error releasing in 1.1, which now does
it automatically and used that to implement similar behavior in tomcat-native.

On windows clean up is invoked on thread detach and on other platforms a thread
local with a destructor is used. Whenever ERR_clear_error or ERR_get_error is
called the thread local is set. When the thread exits the destructor will be
invoked on any thread which does not have a NULL value for the thread local.

I tested this with openssl 1.0.2. I compiled tomcat native against 1.1.0 but I
have not done any windows testing since I don't have a windows build system.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org