Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thread stack size limitations (ref. TODO note) #50

Closed
maysl opened this issue Nov 3, 2012 · 1 comment
Closed

thread stack size limitations (ref. TODO note) #50

maysl opened this issue Nov 3, 2012 · 1 comment

Comments

@maysl
Copy link

maysl commented Nov 3, 2012

pthread_attr_setstacksize(&attr, sizeof(struct mg_connection) * 5);

... does not work because (sizeof(struct mg_connection) * 5) is less than PTHREAD_STACK_MIN, so there is not even enough stack space for creating the thread.

My advice would be to not limit the stack size at all - the default is usually well chosen.

Thank you for this project!

@cpq
Copy link
Member

cpq commented Dec 24, 2012

Got it, thank you!

@cpq cpq closed this as completed Dec 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants