aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-06-07 19:30:15 -0700
committerGarrett D'Amore <garrett@damore.org>2018-06-07 19:30:15 -0700
commit79dea9caa32faec3b8075e1457c9e1276032a93c (patch)
treef9569708314eb5f50f6bf75c90e2541a852f7e8c /docs
parenta45fb3fecbe6321a03e76831019c2c0e777bda34 (diff)
downloadnng-79dea9caa32faec3b8075e1457c9e1276032a93c.tar.gz
nng-79dea9caa32faec3b8075e1457c9e1276032a93c.tar.bz2
nng-79dea9caa32faec3b8075e1457c9e1276032a93c.zip
fixes #508 nng_aio_free blocks during callback
This recycles the job structures, and so the demo seems to work. If you have sufficient concurrency, these aio structures will ultimately leak (with the level of concurrency), but for this demo that's fine. (To keep them from leaking, you'd walk the freelist and discard them just before exiting. The actual growth of the list should be quite small.) There are other strategies that could be used to avoid uncontrolled growth, but they aren't useful for our demo purposes. Also, when we have a fix for 511, we can go ahead and just do a deferred discard. As aios are used *heavily* in the code, the strategy of a deferred cache may help reduce presssure on the heap, andd might be something we want to explore for the core.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions