kc3-lang/libevent/listener.c

Branch :


Log

Author Commit Date CI Message
e66078a0 2019-01-29 21:12:33 Eliminate fd conversion warnings and introduce EVUTIL_INVALID_SOCKET (windows) windows has intptr_t instead of regular int. Also tt_fd_op() had been introduced, since we cannot use tt_int_op() for comparing fd, since it is not always int. (cherry picked from commit b29207dceee33832bb28ab103a833df6a2fd29d3)
ba148796 2018-06-04 16:43:34 listener: ipv6only socket bind support According to RFC3493 and most Linux distributions, default value is to work in IPv4-mapped mode. If there is a requirement to bind same port on same ip addresses but different handlers for both IPv4 and IPv6, it is required to set IPV6_V6ONLY socket option to be sure that the code works as expected without affected by bindv6only sysctl setting in system. See an example working with this patch: https://gist.github.com/demirten/023008a63cd966e48b0ebcf9af7fc113 Closes: #640 (cherry-pick) (cherry picked from commit 387d91f9ab95df8ac3d7bb58493310ad4a377dcf)
df2ed13f 2018-01-04 19:28:59 Merge branch 'listener-immediate-close' * listener-immediate-close: test/listener: cover immediate-close logic Immediately stop trying to accept more connections if listener disabled (cherry picked from commit 416b48ba7a0b44407b7a053bd21830aa75d7162f)
42e851bb 2017-12-10 23:57:19 Merge branch 'evconnlistener-do-not-close-client-fd' Fixes: #577 * evconnlistener-do-not-close-client-fd: listener: cover closing of fd in case evconnlistener_free() called from acceptcb Revert "Fix potential fd leak in listener_read_cb()" (cherry picked from commit bc65ffc14c62c10feffefe6c3d9975ce1d1a8cd8)
2a71b332 2016-03-31 20:45:47 listener: unlock lev on error in listener_read_cb() Without this patch: $ regress --no-fork +listener/error_unlock listener/error_unlock: [warn] Error from accept() call: Too many open files [err] ../evthread.c:220: Assertion lock->count == 0 failed in ../evthread.c Aborted (core dumped) Fixes: #341 Fixes: listener/error_unlock
a695a720 2015-04-27 22:43:04 Fix potential fd leak in listener_read_cb() As pointed out by harlan_ in #libevent after running a coverity sweep. If the listener is free'd, 'new_fd' is never closed.
b625361a 2014-10-13 17:28:14 Provide support for SO_REUSEPORT through LEV_OPT_REUSABLE_PORT
21c962e0 2012-12-20 11:50:23 Merge remote-tracking branch 'origin/patches-2.0'
69db2610 2012-12-20 11:47:09 Avoid leaking fds on evconnlistener with no callback set There's no way to retrieve an fd from an evconnlistener whose callback has been cleared, so we had better close any such fd. Found by coverity; CID 739725.
d5318b66 2012-10-26 19:34:47 Merge remote-tracking branch 'origin/patches-2.0'