kc3-lang/libevent/include

Branch :


Log

Author Commit Date CI Message
0ba0af9c 2011-09-29 09:30:04 Prefer mmap to sendfile unless a DRAINS_TO_FD flag is set. Allows add_file to work with SSL. The sendfile() implementation for evbuffer_add_file is potentially more efficient, but it has a problem: you can only use it to send bytes over a socket using sendfile(). If you are writing bytes via SSL_send() or via a filter, or if you need to be able to inspect your buffer, it doesn't work. As an easy fix, this patch disables the sendfile-based implementation of evbuffer_add_file on an evbuffer unless the user sets a new EVBUFFER_FLAG_DRAINS_TO_FD flag on that evbuffer, indicating that the evbuffer will not be inspected, but only written out via evbuffer_write(), evbuffer_write_atmost(), or drained with stuff like evbuffer_drain() or evbuffer_add_buffer(). This flag is off by default, except for evbuffers used for output on bufferevent_socket. In the future, it could be interesting to make a best-effort file segment implementation that tries to send via sendfile, but mmaps on demand. That's too much complexity for a stable release series, though.
94fba5b9 2011-08-10 15:58:47 Add DNS_ERR_NODATA error code to handle empty replies.
2b6eae59 2011-08-10 15:58:19 Fix docstring in dns.h
50be5a14 2011-08-11 03:06:07 Another docstring fix.
1183f7e2 2011-08-01 10:27:56 Fix typo in event_compat.h comments.
2888facc 2011-07-04 23:02:11 Revise the event/evbuffer/bufferevent doxygen for clarity and accuracy
9556a7d1 2011-05-02 23:22:09 Add missing words to EVLOOP_NONBLOCK documentation
c8baac90 2011-03-07 21:55:47 Followup for Tomash Brechko's http patch This patch makes bufferevent_disable_hard() non-public, and adds a comment about what it's for and why it's used.
5dc56628 2011-02-24 12:30:40 Workaround libevent bug https://sourceforge.net/tracker/index.php?func=detail&aid=3078187&group_id=50884&atid=461324 The problem is that bufferevent_disable() doesn't disable EV_WRITE when 'connecting' flag is set. However from evhttp_connection_reset() we want to disable EV_WRITE for sure (we are closing the socket next). So we add bufferevent_disable_hard(), which acts like bufferevent_disable(), but resets 'connecting' flag before the call to the actual handler. TODO: bufferevent_disable_hard() shouldn't be public, remove it from event2/bufferevent.h.
b5ab9555 2011-02-25 10:35:12 Make --no-libevent-install apply to headers too