diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-03-12 17:37:33 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-03-12 17:37:33 -0700 |
| commit | 55e98ae58c5856c1808e3fccb2548a76c9b8907c (patch) | |
| tree | 8dcb25ea029f87074276ad01d2bda21d1746ca5b /src/core/msgqueue.c | |
| parent | 2f1e799d1225b18e960d426d35b6a83fa80db86f (diff) | |
| download | nng-55e98ae58c5856c1808e3fccb2548a76c9b8907c.tar.gz nng-55e98ae58c5856c1808e3fccb2548a76c9b8907c.tar.bz2 nng-55e98ae58c5856c1808e3fccb2548a76c9b8907c.zip | |
nng_sleep_aio should honor aio timeout.
The first problem was that using nng_sleep_aio
was found to reset the timeout, and this caused subsequent
operations to start failing with timeouts when reusing
the AIO for other operations.
The second thing is that we think it would be nicer if the
presence of real aio timeouts were still honored, so that
if the timeout is shorter than the sleep time, then we get
back an NNG_ETIMEDOUT like every other operation, and we
get back a 0 if the logical sleep operation completes
normally.
Diffstat (limited to 'src/core/msgqueue.c')
0 files changed, 0 insertions, 0 deletions
