How to increase http server Stack?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to increase http server Stack?

跳至解决方案
2,326 次查看
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

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
943 次查看
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 项奖励
回复
3 回复数
944 次查看
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 项奖励
回复
943 次查看
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 项奖励
回复
943 次查看
ARQuattr
Contributor IV

Found it in the new httpd_prv.h file.

0 项奖励
回复