nghttpx: Fix log message
nghttpx: Check failure of evbuffer_* and bufferevent_* functions
nghttpx: Code cleanup