X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-starlingx%2Fmeta-stx-integ%2Frecipes-support%2Flibevent%2Flibevent%2Flibevent-ipv6-client-socket.patch;fp=meta-starlingx%2Fmeta-stx-integ%2Frecipes-support%2Flibevent%2Flibevent%2Flibevent-ipv6-client-socket.patch;h=0000000000000000000000000000000000000000;hb=74effee3d0d0551d7779cef6a6c9e39d43528389;hp=7115f307dc3239274047c1cd7f22c63bcae70db0;hpb=e2daf3807eff755f522d07e5947b6080cd31323c;p=pti%2Frtp.git diff --git a/meta-starlingx/meta-stx-integ/recipes-support/libevent/libevent/libevent-ipv6-client-socket.patch b/meta-starlingx/meta-stx-integ/recipes-support/libevent/libevent/libevent-ipv6-client-socket.patch deleted file mode 100644 index 7115f30..0000000 --- a/meta-starlingx/meta-stx-integ/recipes-support/libevent/libevent/libevent-ipv6-client-socket.patch +++ /dev/null @@ -1,60 +0,0 @@ -Upstream-Status: Inappropriate [1] - -[1] ported from libevent-2.0.21-4.el7.tis.2.src.rpm - -Signed-off-by: Jackie Huang ---- - http.c | 25 ++++++++++++++++++------- - 1 file changed, 18 insertions(+), 7 deletions(-) - ---- a/http.c -+++ b/http.c -@@ -1325,6 +1325,9 @@ evhttp_error_cb(struct bufferevent *bufe - struct evhttp_connection *evcon = arg; - struct evhttp_request *req = TAILQ_FIRST(&evcon->requests); - -+ if (evcon->fd == -1) -+ evcon->fd = bufferevent_getfd(bufev); -+ - switch (evcon->state) { - case EVCON_CONNECTING: - if (what & BEV_EVENT_TIMEOUT) { -@@ -1390,6 +1393,9 @@ evhttp_connection_cb(struct bufferevent - int error; - ev_socklen_t errsz = sizeof(error); - -+ if (evcon->fd == -1) -+ evcon->fd = bufferevent_getfd(bufev); -+ - if (!(what & BEV_EVENT_CONNECTED)) { - /* some operating systems return ECONNREFUSED immediately - * when connecting to a local address. the cleanup is going -@@ -2189,16 +2195,21 @@ evhttp_connection_connect(struct evhttp_ - EVUTIL_ASSERT(!(evcon->flags & EVHTTP_CON_INCOMING)); - evcon->flags |= EVHTTP_CON_OUTGOING; - -- evcon->fd = bind_socket( -- evcon->bind_address, evcon->bind_port, 0 /*reuse*/); -- if (evcon->fd == -1) { -- event_debug(("%s: failed to bind to \"%s\"", -- __func__, evcon->bind_address)); -- return (-1); -+ if (evcon->bind_address || evcon->bind_port) { -+ evcon->fd = bind_socket( -+ evcon->bind_address, evcon->bind_port, 0 /*reuse*/); -+ if (evcon->fd == -1) { -+ event_debug(("%s: failed to bind to \"%s\"", -+ __func__, evcon->bind_address)); -+ return (-1); -+ } -+ -+ bufferevent_setfd(evcon->bufev, evcon->fd); -+ } else { -+ bufferevent_setfd(evcon->bufev, -1); - } - - /* Set up a callback for successful connection setup */ -- bufferevent_setfd(evcon->bufev, evcon->fd); - bufferevent_setcb(evcon->bufev, - NULL /* evhttp_read_cb */, - NULL /* evhttp_write_cb */,