You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ok...@apache.org on 2017/10/18 07:03:57 UTC

[trafficserver] branch master updated: UDPBind with EventIO of UnixUDPConnection.

This is an automated email from the ASF dual-hosted git repository.

oknet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 2eb9dd4  UDPBind with EventIO of UnixUDPConnection.
2eb9dd4 is described below

commit 2eb9dd41fa68d43b444a04209d78798ba9cb2533
Author: Oknet Xu <xu...@skyguard.com.cn>
AuthorDate: Tue Oct 17 21:00:55 2017 +0800

    UDPBind with EventIO of UnixUDPConnection.
---
 iocore/net/UnixUDPNet.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/iocore/net/UnixUDPNet.cc b/iocore/net/UnixUDPNet.cc
index 6eb127f..fb40bd4 100644
--- a/iocore/net/UnixUDPNet.cc
+++ b/iocore/net/UnixUDPNet.cc
@@ -621,8 +621,7 @@ UDPNetProcessor::UDPBind(Continuation *cont, sockaddr const *addr, int send_bufs
   pc = get_UDPPollCont(n->ethread);
   pd = pc->pollDescriptor;
 
-  n->ethread->ep = (EventIO *)ats_malloc(sizeof(EventIO));
-  n->ethread->ep->start(pd, n, EVENTIO_READ);
+  n->ep.start(pd, n, EVENTIO_READ);
 
   cont->handleEvent(NET_EVENT_DATAGRAM_OPEN, n);
   return ACTION_RESULT_DONE;

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].