On 08/02/2012, at 9:02 PM, James Peach wrote: > Hi all, > > In getNumSSLThreads(), there is the following comment: > > // Set number of ssl threads equal to num of processors if > // SSL is enabled so it will scale properly. If SSL is not > // enabled, leave num of ssl threads one, incase a remap rule > // requires traffic server to act as an ssl client. > > However, if SSL is not enabled. getNumSSLThreads() returns 0. In this case, > SSLNetProcessor::start() will fail. > > So is the code wrong or is the commend wrong?
And by way of context ... the reason that I'm interested in this area is that I want to auto-enable SSL if a plugin needs it. In the future, there might not be any SSL ports configured, but a plugin might create one (in principle this could happen at any time). When this happens, it's too late to start additional SSL threads. I was thinking of dynamically allocating sslNetProcessor when we need to configure an SSL port, but I'm definitely interested in other suggestions ;) J