diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-02-21 11:08:23 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-02-21 11:08:23 -0800 |
| commit | a4d378030df61760ea4daa2ddbe46b1366f8e977 (patch) | |
| tree | 7bd8bc37acb1aea849eee2daab429e36676fd59e /src/supplemental/http/http_msg.c | |
| parent | 5fe9202ffedf3a57ec789d622bc52efc3435628b (diff) | |
| download | nng-a4d378030df61760ea4daa2ddbe46b1366f8e977.tar.gz nng-a4d378030df61760ea4daa2ddbe46b1366f8e977.tar.bz2 nng-a4d378030df61760ea4daa2ddbe46b1366f8e977.zip | |
Fixes for POSIX pollq structure.
It was possible for pollq arm to be called on a node that was removed
in some circumstances -- particularly and ep that was closed in the
callback.
While here, lets use normal booleans for closed state, and only call
the arm function (which is not free -- typicall it involves a mutex
and may even involve a system call) if we are going to arm some events.
We also initialize these things properly, and clean up a stale comment.
This work is done to faciliate the kqueue work by @liamstask.
Diffstat (limited to 'src/supplemental/http/http_msg.c')
0 files changed, 0 insertions, 0 deletions
