How to increase http server Stack?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to increase http server Stack?

ソリューションへジャンプ
1,950件の閲覧回数
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 解決策
567件の閲覧回数
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 返答(返信)
568件の閲覧回数
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 件の賞賛
567件の閲覧回数
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 件の賞賛
567件の閲覧回数
ARQuattr
Contributor IV

Found it in the new httpd_prv.h file.

0 件の賞賛