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 2018/02/27 05:33:32 UTC

[trafficserver] branch quic-latest updated: Notify packet arrival with QUIC_EVENT_PACKET_READ_READY

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 4925d9a  Notify packet arrival with QUIC_EVENT_PACKET_READ_READY
4925d9a is described below

commit 4925d9af45ee240e73f725acad384e966a4e5720
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Tue Feb 27 14:29:54 2018 +0900

    Notify packet arrival with QUIC_EVENT_PACKET_READ_READY
    
    Calling schedule_imm without specifying event implicitly use EVENT_IMMEDIATE,
    and it confuses QUICNetVC because the event is also used for inactive timeout.
---
 iocore/net/QUICNet.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/iocore/net/QUICNet.cc b/iocore/net/QUICNet.cc
index ecbc546..68bcc9e 100644
--- a/iocore/net/QUICNet.cc
+++ b/iocore/net/QUICNet.cc
@@ -22,6 +22,7 @@
  */
 
 #include "P_Net.h"
+#include "quic/QUICEvents.h"
 
 ClassAllocator<QUICPollEvent> quicPollEventAllocator("quicPollEvent");
 
@@ -74,7 +75,7 @@ QUICPollCont::_process_long_header_packet(QUICPollEvent *e, NetHandler *nh)
   case QUICPacketType::INITIAL:
     vc->read.triggered = 1;
     vc->handle_received_packet(p);
-    this->mutex->thread_holding->schedule_imm(vc);
+    this->mutex->thread_holding->schedule_imm(vc, QUIC_EVENT_PACKET_READ_READY);
     return;
   case QUICPacketType::ZERO_RTT_PROTECTED:
   // TODO:: do something ?

-- 
To stop receiving notification emails like this one, please contact
maskit@apache.org.