diff --git a/binaries/aarch64/tpws b/binaries/aarch64/tpws index b3ac624..f392e18 100755 Binary files a/binaries/aarch64/tpws and b/binaries/aarch64/tpws differ diff --git a/binaries/arm/tpws b/binaries/arm/tpws index ff145a8..165604f 100755 Binary files a/binaries/arm/tpws and b/binaries/arm/tpws differ diff --git a/binaries/freebsd-x64/tpws b/binaries/freebsd-x64/tpws index b71cfb0..16edfda 100755 Binary files a/binaries/freebsd-x64/tpws and b/binaries/freebsd-x64/tpws differ diff --git a/binaries/mac64/tpws b/binaries/mac64/tpws index 6b16bec..c90ee86 100755 Binary files a/binaries/mac64/tpws and b/binaries/mac64/tpws differ diff --git a/binaries/mips32r1-lsb/tpws b/binaries/mips32r1-lsb/tpws index 62c3aaf..5b1c2e9 100755 Binary files a/binaries/mips32r1-lsb/tpws and b/binaries/mips32r1-lsb/tpws differ diff --git a/binaries/mips32r1-msb/tpws b/binaries/mips32r1-msb/tpws index 539bc44..ee27549 100755 Binary files a/binaries/mips32r1-msb/tpws and b/binaries/mips32r1-msb/tpws differ diff --git a/binaries/mips64r2-msb/tpws b/binaries/mips64r2-msb/tpws index 1a842f4..476baf5 100755 Binary files a/binaries/mips64r2-msb/tpws and b/binaries/mips64r2-msb/tpws differ diff --git a/binaries/ppc/tpws b/binaries/ppc/tpws index 0305074..f556c49 100755 Binary files a/binaries/ppc/tpws and b/binaries/ppc/tpws differ diff --git a/binaries/x86/tpws b/binaries/x86/tpws index 928d9a7..98711e9 100755 Binary files a/binaries/x86/tpws and b/binaries/x86/tpws differ diff --git a/binaries/x86_64/tpws b/binaries/x86_64/tpws index 6e67e01..686000d 100755 Binary files a/binaries/x86_64/tpws and b/binaries/x86_64/tpws differ diff --git a/binaries/x86_64/tpws_wsl.tgz b/binaries/x86_64/tpws_wsl.tgz index b4addfc..2e72544 100644 Binary files a/binaries/x86_64/tpws_wsl.tgz and b/binaries/x86_64/tpws_wsl.tgz differ diff --git a/tpws/resolver.c b/tpws/resolver.c index 5faffd9..f7f2049 100644 --- a/tpws/resolver.c +++ b/tpws/resolver.c @@ -179,14 +179,24 @@ bool resolver_init(int threads, int fd_signal_pipe) action.sa_handler = sigbreak; sigaction(SIG_BREAK, &action, NULL); + + pthread_attr_t attr; + if (pthread_attr_init(&attr)) goto ex1; + // set minimum thread stack size + if (pthread_attr_setstacksize(&attr,20480)) + { + pthread_attr_destroy(&attr); + goto ex1; + } for(t=0, resolver.threads=threads ; t