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/12/18 03:33:33 UTC
[trafficserver] branch quic-latest updated: Print the reason when
switch to closing state
This is an automated email from the ASF dual-hosted git repository.
maskit 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 6c80bfb Print the reason when switch to closing state
6c80bfb is described below
commit 6c80bfb792659c7a8ed9eabb1c124557f7b65921
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Mon Dec 18 12:33:05 2017 +0900
Print the reason when switch to closing state
---
iocore/net/QUICNetVConnection.cc | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/iocore/net/QUICNetVConnection.cc b/iocore/net/QUICNetVConnection.cc
index 68fb459..e3621ff 100644
--- a/iocore/net/QUICNetVConnection.cc
+++ b/iocore/net/QUICNetVConnection.cc
@@ -1047,6 +1047,11 @@ QUICNetVConnection::_switch_to_closing_state(QUICConnectionErrorUPtr error)
if (this->_complete_handshake_if_possible() != 0) {
QUICConDebug("Switching state without handshake completion");
}
+ if (error->msg) {
+ QUICConDebug("Reason: %.*s", static_cast<int>(strlen(error->msg)), error->msg);
+ } else {
+ QUICConDebug("Reason was not provided");
+ }
if (error->cls == QUICErrorClass::APPLICATION) {
this->transmit_frame(QUICFrameFactory::create_application_close_frame(std::move(error)));
} else {
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].