mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Increase default stack size for *nix
This commit is contained in:
1 parent
f8a7266bdf
commit
5c5f4e258f
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -59,7 +59,7 @@ struct extparam conf = {
|
||||
NULL,
|
||||
NULL,
|
||||
#ifdef __FreeBSD__
|
||||
16384,
|
||||
8192,
|
||||
#else
|
||||
0,
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -508,7 +508,7 @@ int MODULEMAINFUNC (int argc, char** argv){
|
||||
|
||||
#ifndef _WIN32
|
||||
pthread_attr_init(&pa);
|
||||
pthread_attr_setstacksize(&pa,PTHREAD_STACK_MIN + (8192 + srv.stacksize));
|
||||
pthread_attr_setstacksize(&pa,PTHREAD_STACK_MIN + (16384 + srv.stacksize));
|
||||
pthread_attr_setdetachstate(&pa,PTHREAD_CREATE_DETACHED);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user