You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2017/10/11 07:50:57 UTC
[trafficserver] 24/25: Moved the set handler in QUICNetVConnection
constructor to init method
This is an automated email from the ASF dual-hosted git repository.
maskit pushed a commit to branch quic-05
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit dd8b51f0db1465cbe975d1f32eecfb1a369a17e4
Author: Bryan Call <bc...@apache.org>
AuthorDate: Thu Oct 5 12:00:14 2017 -0700
Moved the set handler in QUICNetVConnection constructor to init method
(cherry picked from commit e07806283172cd91256fc12235738e07607e0742)
---
iocore/net/P_QUICNetVConnection.h | 2 +-
iocore/net/QUICNetVConnection.cc | 6 +-----
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/iocore/net/P_QUICNetVConnection.h b/iocore/net/P_QUICNetVConnection.h
index 4c0ed6a..339f92e 100644
--- a/iocore/net/P_QUICNetVConnection.h
+++ b/iocore/net/P_QUICNetVConnection.h
@@ -143,7 +143,7 @@ class QUICNetVConnection : public UnixNetVConnection, public QUICConnection
using super = UnixNetVConnection; ///< Parent type.
public:
- QUICNetVConnection();
+ QUICNetVConnection() {}
void init(UDPConnection *, QUICPacketHandler *);
diff --git a/iocore/net/QUICNetVConnection.cc b/iocore/net/QUICNetVConnection.cc
index 9819b51..a941336 100644
--- a/iocore/net/QUICNetVConnection.cc
+++ b/iocore/net/QUICNetVConnection.cc
@@ -52,15 +52,11 @@ static constexpr uint32_t MINIMUM_INITIAL_CLIENT_PACKET_SIZE = 1200;
ClassAllocator<QUICNetVConnection> quicNetVCAllocator("quicNetVCAllocator");
-QUICNetVConnection::QUICNetVConnection() : UnixNetVConnection()
-{
- SET_HANDLER((NetVConnHandler)&QUICNetVConnection::state_pre_handshake);
-}
-
// XXX This might be called on ET_UDP thread
void
QUICNetVConnection::init(UDPConnection *udp_con, QUICPacketHandler *packet_handler)
{
+ SET_HANDLER((NetVConnHandler)&QUICNetVConnection::state_pre_handshake);
this->_packet_transmitter_mutex = new_ProxyMutex();
this->_frame_transmitter_mutex = new_ProxyMutex();
this->_udp_con = udp_con;
--
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.