trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From masa...@apache.org
Subject [trafficserver] branch quic-latest updated: Rename _frame_buffer of QUICNetVConnection to _frame_send_queue
Date Fri, 15 Sep 2017 01:56:59 GMT
This is an automated email from the ASF dual-hosted git repository.

masaori 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 f973bcc  Rename _frame_buffer of QUICNetVConnection to _frame_send_queue
f973bcc is described below

commit f973bccd4b5b55f61104ada6e231495672756acb
Author: Masaori Koshiba <masaori@apache.org>
AuthorDate: Fri Sep 15 10:56:46 2017 +0900

    Rename _frame_buffer of QUICNetVConnection to _frame_send_queue
---
 iocore/net/P_QUICNetVConnection.h | 2 +-
 iocore/net/QUICNetVConnection.cc  | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/iocore/net/P_QUICNetVConnection.h b/iocore/net/P_QUICNetVConnection.h
index 61d16e2..01b689c 100644
--- a/iocore/net/P_QUICNetVConnection.h
+++ b/iocore/net/P_QUICNetVConnection.h
@@ -219,7 +219,7 @@ private:
 
   Queue<QUICPacket> _packet_recv_queue;
   Queue<QUICPacket> _packet_send_queue;
-  std::queue<std::unique_ptr<QUICFrame, QUICFrameDeleterFunc>> _frame_buffer;
+  std::queue<QUICFramePtr> _frame_send_queue;
 
   Event *_packet_write_ready = nullptr;
 
diff --git a/iocore/net/QUICNetVConnection.cc b/iocore/net/QUICNetVConnection.cc
index b0df002..8f25ca9 100644
--- a/iocore/net/QUICNetVConnection.cc
+++ b/iocore/net/QUICNetVConnection.cc
@@ -248,7 +248,7 @@ void
 QUICNetVConnection::transmit_frame(std::unique_ptr<QUICFrame, QUICFrameDeleterFunc>
frame)
 {
   DebugQUICCon("Type=%s Size=%zu", QUICDebugNames::frame_type(frame->type()), frame->size());
-  this->_frame_buffer.push(std::move(frame));
+  this->_frame_send_queue.push(std::move(frame));
   if (!this->_packet_write_ready) {
     this->_packet_write_ready = eventProcessor.schedule_imm(this, ET_CALL, QUIC_EVENT_PACKET_WRITE_READY,
nullptr);
   }
@@ -666,9 +666,9 @@ QUICNetVConnection::_packetize_frames()
   QUICPacketType previous_packet_type = QUICPacketType::UNINITIALIZED;
   QUICPacketType current_packet_type  = QUICPacketType::UNINITIALIZED;
 
-  while (this->_frame_buffer.size() > 0) {
-    frame = std::move(this->_frame_buffer.front());
-    this->_frame_buffer.pop();
+  while (this->_frame_send_queue.size() > 0) {
+    frame = std::move(this->_frame_send_queue.front());
+    this->_frame_send_queue.pop();
     QUICRetransmissionFrame *rf = dynamic_cast<QUICRetransmissionFrame *>(frame.get());
     previous_packet_type        = current_packet_type;
     if (rf) {

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

Mime
View raw message