# Simple Web Server Stack Size

**URL:** <https://forums.digi.com/t/simple-web-server-stack-size/5761>\
**Category:** NET+OS\
**Created:** [March 22, 2004, 7:07pm UTC](https://forums.digi.com/t/simple-web-server-stack-size/5761 "2004-03-22T19:07:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/digi/original/1X/11da31a6a1fbcd03ef21d3f785c317c824009ae2.png) [@system](https://forums.digi.com/u/system)\
**Post date:** [March 22, 2004, 7:07pm UTC](https://forums.digi.com/t/simple-web-server-stack-size/5761/1 "2004-03-22T19:07:45Z")

</div>

Is it possible to increase the stack size of the simple web server. It looks like it defaults to 6K. Is there a Define somewhere that has this value, or is it hardcoded in the library?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/digi/original/1X/11da31a6a1fbcd03ef21d3f785c317c824009ae2.png) [@system](https://forums.digi.com/u/system)\
**Post date:** [March 23, 2004, 1:23pm UTC](https://forums.digi.com/t/simple-web-server-stack-size/5761/2 "2004-03-23T13:23:58Z")

</div>

Look out for void HSProperties in the NET+OS API Reference: void HSProperties(char \* tnamep, int priority, int sysstack, int usrstack, int mode, int flags); I think that’s it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/digi/original/1X/11da31a6a1fbcd03ef21d3f785c317c824009ae2.png) [@system](https://forums.digi.com/u/system)\
**Post date:** [March 23, 2004, 6:58pm UTC](https://forums.digi.com/t/simple-web-server-stack-size/5761/3 "2004-03-23T18:58:51Z")

</div>

Does anyone know the default settings for the simple web server. I only want to change the sysstack and maybe the name using HSProperties function. When i put null in for the other values ( usrstack,mode,flags,priority) then strange things happen. I had made the assumption that putting a null would use defaults for that setting, but apparenty that is not the case. so if i dont put null, what should i put for those other settings, what are their defaults, if i know their defaults ill just use those values. Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/digi/original/1X/11da31a6a1fbcd03ef21d3f785c317c824009ae2.png) [@system](https://forums.digi.com/u/system)\
**Post date:** [March 24, 2004, 4:07pm UTC](https://forums.digi.com/t/simple-web-server-stack-size/5761/4 "2004-03-24T16:07:54Z")

</div>

Try the defaul parameters described in the AWS HS\_SERVER\_PARAMETER: priority: 16 sysstack: 4096 userstack: 2048 mode & flags ??? I don’t know

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/digi/original/1X/11da31a6a1fbcd03ef21d3f785c317c824009ae2.png) [@system](https://forums.digi.com/u/system)\
**Post date:** [March 23, 2004, 2:30pm UTC](https://forums.digi.com/t/simple-web-server-stack-size/5761/5 "2004-03-23T14:30:01Z")

</div>

If I remember rightly, there are at least three ways of starting the web server. The call used in the example sets everything to some sensible default values. Then there’s a call which allows you to change certain parameters (which I think include the stack size). Finally there’s a call which allows you to set everything. It’s in the help - just look at the functions for the AWS. Steve
