shinrich commented on a change in pull request #7622:
URL: https://github.com/apache/trafficserver/pull/7622#discussion_r602386442
##########
File path: proxy/ProxyTransaction.cc
##########
@@ -220,3 +220,78 @@ ProxyTransaction::has_request_body(int64_t
request_content_length, bool is_chunk
{
return request_content_length > 0 || is_chunked;
}
+
+bool
+ProxyTransaction::is_read_closed() const
+{
+ return false;
+}
+
+bool
+ProxyTransaction::expect_send_trailer() const
+{
+ return false;
+}
+
+void
+ProxyTransaction::set_expect_send_trailer()
+{
+}
+bool
+ProxyTransaction::expect_receive_trailer() const
+{
+ return false;
+}
+
+void
+ProxyTransaction::set_expect_receive_trailer()
+{
+}
+
+void
+ProxyTransaction::attach_transaction(HttpSM *attach_sm)
+{
+ _sm = attach_sm;
+}
+
+void
+ProxyTransaction::release()
+{
+ HttpTxnDebug("[%" PRId64 "] session released by sm [%" PRId64 "]",
_proxy_ssn ? _proxy_ssn->connection_id() : 0,
+ _sm ? _sm->sm_id : 0);
+
+ this->decrement_transactions_stat();
+
+ // Pass along the release to the session
+ if (_proxy_ssn) {
+ _proxy_ssn->release(this);
+ }
+}
+
+HostDBApplicationInfo::HttpVersion
+ProxyTransaction::get_version(HTTPHdr &hdr) const
+{
+ if (hdr.version_get() == HTTPVersion(1, 1)) {
+ return HostDBApplicationInfo::HTTP_VERSION_11;
+ } else if (hdr.version_get() == HTTPVersion(1, 0)) {
+ return HostDBApplicationInfo::HTTP_VERSION_10;
+ } else {
+ return HostDBApplicationInfo::HTTP_VERSION_09;
+ }
+}
+
+bool
+ProxyTransaction::allow_half_open() const
+{
+ return false;
+}
+
+void
+ProxyTransaction::increment_transactions_stat()
Review comment:
No good reason. Seemed like a good idea at the time I suppose.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]