You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2017/07/24 02:13:24 UTC
[trafficserver] branch master updated (9f18c76 -> de461d6)
This is an automated email from the ASF dual-hosted git repository.
jpeach pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git.
from 9f18c76 Rename tests/getting_started doc.
new 2f83a81 Fix weird whitespace in I_VConnection.h.
new de461d6 Remove unused function VcTypeCode.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
iocore/eventsystem/I_VConnection.h | 28 ++++++++++++++++------------
proxy/http/HttpTunnel.cc | 26 --------------------------
2 files changed, 16 insertions(+), 38 deletions(-)
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].
[trafficserver] 02/02: Remove unused function VcTypeCode.
Posted by jp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jpeach pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit de461d67d3e1c4de9b116c0b1316bec3964b2b71
Author: James Peach <jp...@apache.org>
AuthorDate: Sun Jul 23 19:11:53 2017 -0700
Remove unused function VcTypeCode.
---
proxy/http/HttpTunnel.cc | 26 --------------------------
1 file changed, 26 deletions(-)
diff --git a/proxy/http/HttpTunnel.cc b/proxy/http/HttpTunnel.cc
index fd702f7..5eb9299 100644
--- a/proxy/http/HttpTunnel.cc
+++ b/proxy/http/HttpTunnel.cc
@@ -44,32 +44,6 @@ static const char *const CHUNK_HEADER_FMT = "%" PRIx64 "\r\n";
// a block in the input stream.
static int const CHUNK_IOBUFFER_SIZE_INDEX = MIN_IOBUFFER_SIZE;
-char
-VcTypeCode(HttpTunnelType_t t)
-{
- char zret = ' ';
- switch (t) {
- case HT_HTTP_CLIENT:
- zret = 'U';
- break;
- case HT_HTTP_SERVER:
- zret = 'S';
- break;
- case HT_TRANSFORM:
- zret = 'T';
- break;
- case HT_CACHE_READ:
- zret = 'R';
- break;
- case HT_CACHE_WRITE:
- zret = 'W';
- break;
- default:
- break;
- }
- return zret;
-}
-
ChunkedHandler::ChunkedHandler()
: action(ACTION_UNSET),
chunked_reader(nullptr),
--
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.
[trafficserver] 01/02: Fix weird whitespace in I_VConnection.h.
Posted by jp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jpeach pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 2f83a8195a05b54140333e1b117bc23746537ce8
Author: James Peach <jp...@apache.org>
AuthorDate: Sun Jul 23 17:20:38 2017 -0700
Fix weird whitespace in I_VConnection.h.
---
iocore/eventsystem/I_VConnection.h | 28 ++++++++++++++++------------
1 file changed, 16 insertions(+), 12 deletions(-)
diff --git a/iocore/eventsystem/I_VConnection.h b/iocore/eventsystem/I_VConnection.h
index 27c6d97..374302e 100644
--- a/iocore/eventsystem/I_VConnection.h
+++ b/iocore/eventsystem/I_VConnection.h
@@ -27,9 +27,9 @@
#include "ts/ink_platform.h"
#include "I_EventSystem.h"
+
#if !defined(I_VIO_h)
#error "include I_VIO.h"
----include I_VIO.h
#endif
//
@@ -110,18 +110,18 @@
#define VC_EVENT_DONE CONTINUATION_DONE
#define VC_EVENT_CONT CONTINUATION_CONT
- //////////////////////////////////////////////////////////////////////////////
- //
- // Support Data Structures
- //
- //////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
+//
+// Support Data Structures
+//
+//////////////////////////////////////////////////////////////////////////////
- /** Used in VConnection::shutdown(). */
- enum ShutdownHowTo_t {
- IO_SHUTDOWN_READ = 0,
- IO_SHUTDOWN_WRITE,
- IO_SHUTDOWN_READWRITE
- };
+/** Used in VConnection::shutdown(). */
+enum ShutdownHowTo_t {
+ IO_SHUTDOWN_READ = 0,
+ IO_SHUTDOWN_WRITE,
+ IO_SHUTDOWN_READWRITE,
+};
/** Used in VConnection::get_data(). */
enum TSApiDataType {
@@ -383,6 +383,7 @@ struct DummyVConnection : public VConnection {
"cannot use default implementation");
return nullptr;
}
+
virtual VIO *
do_io_read(Continuation * /* c ATS_UNUSED */, int64_t /* nbytes ATS_UNUSED */, MIOBuffer * /* buf ATS_UNUSED */)
{
@@ -390,17 +391,20 @@ struct DummyVConnection : public VConnection {
"cannot use default implementation");
return nullptr;
}
+
virtual void
do_io_close(int /* alerrno ATS_UNUSED */)
{
ink_assert(!"VConnection::do_io_close -- "
"cannot use default implementation");
}
+
virtual void do_io_shutdown(ShutdownHowTo_t /* howto ATS_UNUSED */)
{
ink_assert(!"VConnection::do_io_shutdown -- "
"cannot use default implementation");
}
+
DummyVConnection(ProxyMutex *m) : VConnection(m) {}
};
--
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.