diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-06-12 10:34:22 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-06-12 10:34:22 -0700 |
| commit | aaec633023a1b3f2c6d24fe697bda4737abe84ee (patch) | |
| tree | 9907fd916d61e82abd300425670bddeb417788ad /src/protocol/pair1/pair.c | |
| parent | 79c761b66276289ebe703b596e285469deaa7a16 (diff) | |
| download | nng-aaec633023a1b3f2c6d24fe697bda4737abe84ee.tar.gz nng-aaec633023a1b3f2c6d24fe697bda4737abe84ee.tar.bz2 nng-aaec633023a1b3f2c6d24fe697bda4737abe84ee.zip | |
fixes #533 nni_aio_begin should not dispatch task on NNG_ECLOSED.
This changes nni_aio_begin so that it immediately terminates when
it encounters aio->a_closed, much like it does for aio->a_stop.
The semantic for nni_aio_close() is supposed to be like nni_aio_stop(),
but without blocking.
I suspect that this might be responsible for use-after-free bugs that
seem to have been rearing their head lately.
Diffstat (limited to 'src/protocol/pair1/pair.c')
0 files changed, 0 insertions, 0 deletions
