Snort mailing list archives
Bug in spp_session.c/initSessionCache? (assigning value to cleanup_sessions)
From: James McLaughlin <jmclaughlin () maxeler com>
Date: Mon, 25 Apr 2016 16:27:45 +0100
In initSessionCache, we have the following block of code: if( cleanup_sessions < ( 2 * max_sessions ) ) sessionCache->cleanup_sessions = cleanup_sessions; else sessionCache->cleanup_sessions = ( max_sessions / 2 ); if( sessionCache->cleanup_sessions == 0 ) sessionCache->cleanup_sessions = 1; Going by the contents of the else block, the low default value of cleanup_sessions, and the fact that this allows cleanup_sessions to exceed max_sessions... this looks like it should begin: if( (2 * cleanup_sessions) <= max_sessions) James.
------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________ Snort-devel mailing list Snort-devel () lists sourceforge net https://lists.sourceforge.net/lists/listinfo/snort-devel Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=snort-devel Please visit http://blog.snort.org for the latest news about Snort!
Current thread:
- Bug in spp_session.c/initSessionCache? (assigning value to cleanup_sessions) James McLaughlin (Apr 25)
- Re: Bug in spp_session.c/initSessionCache? (assigning value to cleanup_sessions) Gaurav Nagare (gnagare) (May 01)