]> granicus.if.org Git - libevent/commit
bev_async: trigger/run only deferred callbacks
authorAzat Khuzhin <a3at.mail@gmail.com>
Tue, 13 Nov 2018 18:31:44 +0000 (21:31 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Tue, 13 Nov 2018 19:46:20 +0000 (22:46 +0300)
commit908e710d40fb30cc68b515cce435a026c7ecc62a
tree9f6cc6c87ad3195e4cf2019af9c9fbba8746e67b
parent2bf673a467ad412771419ea131cf2b3a9da740eb
bev_async: trigger/run only deferred callbacks

Otherwise callbacks will be runned even without event_loop, due to
nature of IOCP.

A simple example is:
  evhttp_connection_free(client)
  # freeing the client will trigger evhttp_connection_free() for the
  # client on the server side, and hence there will double free
  evhttp_free(server)

Fixes: iocp/http/simple
bufferevent_async.c