aboutsummaryrefslogtreecommitdiff
path: root/src/platform/posix/posix_thread.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-07-07 00:08:24 -0700
committerGarrett D'Amore <garrett@damore.org>2017-07-07 00:08:24 -0700
commit3730260da3744b549aaa1fe13946a674f924f63c (patch)
tree902866876ee71246a299370cbe8f6580d758525c /src/platform/posix/posix_thread.c
parent3b19940dfcd5d3585b1fb1dcf7915a748ae67289 (diff)
downloadnng-3730260da3744b549aaa1fe13946a674f924f63c.tar.gz
nng-3730260da3744b549aaa1fe13946a674f924f63c.tar.bz2
nng-3730260da3744b549aaa1fe13946a674f924f63c.zip
TCP asynchronous working now.
It turns out that I had to fix a number of subtle asynchronous handling bugs, but now TCP is fully asynchronous. We need to change the high-level dial and listen interfaces to be async as well. Some of the transport APIs have changed here, and I've elected to change what we expose to consumers as endpoints into seperate dialers and listeners. Under the hood they are the same, but it turns out that its helpful to know the intended use of the endpoint at initialization time. Scalability still occasionally hangs on Linux. Investigation pending.
Diffstat (limited to 'src/platform/posix/posix_thread.c')
-rw-r--r--src/platform/posix/posix_thread.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/platform/posix/posix_thread.c b/src/platform/posix/posix_thread.c
index 4137984f..a2f24f8a 100644
--- a/src/platform/posix/posix_thread.c
+++ b/src/platform/posix/posix_thread.c
@@ -297,7 +297,7 @@ nni_plat_init(int (*helper)(void))
// probably get by with even just 8k, but Linux usually wants 16k
// as a minimum. If this fails, its not fatal, just we won't be
// as scalable / thrifty with our use of VM.
- (void) pthread_attr_setstacksize(&nni_pthread_attr, 16384);
+ //(void) pthread_attr_setstacksize(&nni_pthread_attr, 16384);
if ((rv = nni_posix_pollq_sysinit()) != 0) {
pthread_mutex_unlock(&nni_plat_lock);
@@ -316,7 +316,6 @@ nni_plat_init(int (*helper)(void))
pthread_condattr_destroy(&nni_cvattr);
pthread_attr_destroy(&nni_pthread_attr);
return (rv);
-
}
if (pthread_atfork(NULL, NULL, nni_atfork_child) != 0) {