How to increase http server Stack?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to increase http server Stack?

Jump to solution
2,328 Views
MQXuser
Contributor III

I have a few cgi functions wich happens to consume enough RAM memory to generate an stack overflow.

I would like to know how to increase this stack in order to prevent this error.

 

Regards

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
945 Views
PetrM
Senior Contributor I

In file httpd_mqx.c, search for lines (2x):

 

stack = MAX(3 * stack, 2500);

 

Try bigger number and recompile libraries.

 

PetrM

 

View solution in original post

0 Kudos
Reply
3 Replies
946 Views
PetrM
Senior Contributor I

In file httpd_mqx.c, search for lines (2x):

 

stack = MAX(3 * stack, 2500);

 

Try bigger number and recompile libraries.

 

PetrM

 

0 Kudos
Reply
945 Views
ARQuattr
Contributor IV

This worked for me in MQX3.6, but 3.7 is different.  Where can I find the size setting in 3.7?

0 Kudos
Reply
945 Views
ARQuattr
Contributor IV

Found it in the new httpd_prv.h file.

0 Kudos
Reply