trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject [trafficserver] branch quic-latest updated: Initialize the SSL_CTX in QUICNetProcessor and clean up to use C++11 assignment initialization
Date Tue, 03 Oct 2017 21:00:48 GMT
This is an automated email from the ASF dual-hosted git repository.

bcall pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/quic-latest by this push:
     new 6fb7f87  Initialize the SSL_CTX in QUICNetProcessor and clean up to use C++11 assignment
initialization
6fb7f87 is described below

commit 6fb7f874fba599efe602c35901d1df68da8d72e2
Author: Bryan Call <bcall@apache.org>
AuthorDate: Tue Oct 3 13:57:46 2017 -0700

    Initialize the SSL_CTX in QUICNetProcessor and clean up to use C++11
    assignment initialization
---
 iocore/net/P_QUICNetProcessor.h  |  2 +-
 iocore/net/P_UDPNet.h            | 12 ++++--------
 iocore/net/P_UnixUDPConnection.h | 10 +++++-----
 3 files changed, 10 insertions(+), 14 deletions(-)

diff --git a/iocore/net/P_QUICNetProcessor.h b/iocore/net/P_QUICNetProcessor.h
index f5a2906..9f97454 100644
--- a/iocore/net/P_QUICNetProcessor.h
+++ b/iocore/net/P_QUICNetProcessor.h
@@ -68,7 +68,7 @@ private:
   QUICNetProcessor(const QUICNetProcessor &);
   QUICNetProcessor &operator=(const QUICNetProcessor &);
 
-  SSL_CTX *_ssl_ctx;
+  SSL_CTX *_ssl_ctx = nullptr;
 };
 
 extern QUICNetProcessor quic_NetProcessor;
diff --git a/iocore/net/P_UDPNet.h b/iocore/net/P_UDPNet.h
index a093bb8..dcc28e4 100644
--- a/iocore/net/P_UDPNet.h
+++ b/iocore/net/P_UDPNet.h
@@ -61,19 +61,15 @@ extern UDPNetProcessorInternal udpNetInternal;
 class PacketQueue
 {
 public:
-  PacketQueue() : nPackets(0), now_slot(0)
-  {
-    lastPullLongTermQ = 0;
-    init();
-  }
+  PacketQueue() { init(); }
 
   virtual ~PacketQueue() {}
-  int nPackets;
-  ink_hrtime lastPullLongTermQ;
+  int nPackets                 = 0;
+  ink_hrtime lastPullLongTermQ = 0;
   Queue<UDPPacketInternal> longTermQ;
   Queue<UDPPacketInternal> bucket[N_SLOTS];
   ink_hrtime delivery_time[N_SLOTS];
-  int now_slot;
+  int now_slot = 0;
 
   void
   init(void)
diff --git a/iocore/net/P_UnixUDPConnection.h b/iocore/net/P_UnixUDPConnection.h
index 6c71d46..6d5e455 100644
--- a/iocore/net/P_UnixUDPConnection.h
+++ b/iocore/net/P_UnixUDPConnection.h
@@ -47,21 +47,21 @@ public:
   SLINK(UnixUDPConnection, newconn_alink);
 
   InkAtomicList inQueue;
-  int onCallbackQueue;
-  Action *callbackAction;
-  EThread *ethread;
+  int onCallbackQueue    = 0;
+  Action *callbackAction = nullptr;
+  EThread *ethread       = nullptr;
   EventIO ep;
 
   UnixUDPConnection(int the_fd);
   virtual ~UnixUDPConnection();
 
 private:
-  int m_errno;
+  int m_errno = 0;
   virtual void UDPConnection_is_abstract(){};
 };
 
 TS_INLINE
-UnixUDPConnection::UnixUDPConnection(int the_fd) : onCallbackQueue(0), callbackAction(nullptr),
ethread(nullptr), m_errno(0)
+UnixUDPConnection::UnixUDPConnection(int the_fd)
 {
   fd = the_fd;
   UDPPacketInternal p;

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

Mime
View raw message