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

commit 36afa3a1708420b4232a63ab43a791e6fef83995
Author: Bryan Call <bc...@apache.org>
AuthorDate: Tue Oct 3 18:05:06 2017 -0700

    Have Quic use make_unique
---
 iocore/net/QUICNetVConnection.cc | 4 ++--
 iocore/net/quic/QUICTypes.h      | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/iocore/net/QUICNetVConnection.cc b/iocore/net/QUICNetVConnection.cc
index 8801922..aff162a 100644
--- a/iocore/net/QUICNetVConnection.cc
+++ b/iocore/net/QUICNetVConnection.cc
@@ -412,7 +412,7 @@ QUICNetVConnection::state_handshake(int event, Event *data)
   case EVENT_IMMEDIATE: {
     // Start Implicit Shutdown. Because of no network activity for the 
duration of the idle timeout.
     this->remove_from_active_queue();
-    this->close({});
+    this->close(std::make_unique<QUICConnectionError>());
 
     // TODO: signal VC_EVENT_ACTIVE_TIMEOUT/VC_EVENT_INACTIVITY_TIMEOUT to 
application
     break;
@@ -472,7 +472,7 @@ QUICNetVConnection::state_connection_established(int event, 
Event *data)
   case EVENT_IMMEDIATE: {
     // Start Implicit Shutdown. Because of no network activity for the 
duration of the idle timeout.
     this->remove_from_active_queue();
-    this->close({});
+    this->close(std::make_unique<QUICConnectionError>());
 
     // TODO: signal VC_EVENT_ACTIVE_TIMEOUT/VC_EVENT_INACTIVITY_TIMEOUT to 
application
     break;
diff --git a/iocore/net/quic/QUICTypes.h b/iocore/net/quic/QUICTypes.h
index c2673d9..d25f36a 100644
--- a/iocore/net/quic/QUICTypes.h
+++ b/iocore/net/quic/QUICTypes.h
@@ -169,6 +169,7 @@ public:
 class QUICConnectionError : public QUICError
 {
 public:
+  QUICConnectionError() : QUICError() {}
   QUICConnectionError(const QUICErrorClass error_class, const QUICErrorCode 
error_code, const char *error_msg = nullptr)
     : QUICError(error_class, error_code, error_msg){};
 };

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

Reply via email to