Commit Briefs
proposal: show custom message when the capsule is not reachable (proposal/offline-dns-message)
As discussed in the mailing list, this is a quick draft for a (imho) neat functionality: if there's an error connecting to a capsule, try to do a TXT query at _offline.$hostname (this is subject to change) and show the message to the user. It's a nice way to communicate to the user that a certain capsule is, for example, supposed to be offline in certain situations.
send received page in chunks
imsg can't handle buffer "too big" (around INT16_MAX) and solene@ capsule index is ~29K. The 4K chunk size is completely arbitrary.
wrap unfreeze in ifdef
instead of defining macros in compat.h. It's clearer that it's only for libevent2 this way
unfrozen by default
it seems that we can "melt" :P the evbuffer from the start to avoid the unfreeze/freeze dance
fix bufferevent tls I/O on libevent2
on libevent2 we need to wrap evbuffer_add with evbuffer_freeze/evbuffer_unfreeze. Not sure exactly why, probably because we're doing some evbuffer_enable/disable/enable-again. Retain compatibility with the custom libevent1 in base on OpenBSD.
fix possible overflow
sizeof(buf) should be equal to howmuch, otherwise we may end up reading with tls_read out of bounds and corrupting the stack.
move struct req declaration up
avoid a dummy `struct req;'