[stunnel-users] Enhancement request - Increase thread stack size

Mccue, Richard Alan richard.mccue at hp.com
Wed Mar 26 20:14:07 CET 2008

Michal Trojnara wrote:
>> I load an engine into Stunnel to access the private key. The engine loads
>> without incident, but Stunnel consistently aborts when creating a session
>> with the first peer because the thread stack is too small.
> I'm not sure if it's a good idea to sacrifice stunnel scalability for
> compatibility with this engine.  Thread stack size is one of the main
> limitations for the number of concurrent threads on 32-bit platforms.  IMHO
> it's better to fix the engine code to allocate its buffers on the heap.>
> What do you think?

All things considered, I must agree that reducing the engine use of the stack would be the better solution. I'll look it over and see if I can find anything sizable on the stack to move.

Thanks for the suggestion!

- Rich

More information about the stunnel-users mailing list