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/05/17 05:11:09 UTC
[trafficserver] branch quic-latest updated: QUIC Client: Set peer
connection id
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 5624d23 QUIC Client: Set peer connection id
5624d23 is described below
commit 5624d2365f2d2b301086826d6f84c0db815a7e16
Author: Masaori Koshiba <ma...@apache.org>
AuthorDate: Thu May 17 14:10:50 2018 +0900
QUIC Client: Set peer connection id
---
iocore/net/QUICNetVConnection.cc | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/iocore/net/QUICNetVConnection.cc b/iocore/net/QUICNetVConnection.cc
index 5b03dcb..8c0867b 100644
--- a/iocore/net/QUICNetVConnection.cc
+++ b/iocore/net/QUICNetVConnection.cc
@@ -1315,7 +1315,7 @@ QUICNetVConnection::_build_packet(ats_unique_buf buf, size_t len, bool retransmi
switch (type) {
case QUICPacketType::INITIAL:
ink_assert(this->get_context() == NET_VCONNECTION_OUT);
- packet = this->_packet_factory.create_initial_packet(this->_original_quic_connection_id, this->_original_quic_connection_id,
+ packet = this->_packet_factory.create_initial_packet(this->_original_quic_connection_id, this->_quic_connection_id,
this->largest_acked_packet_number(), std::move(buf), len);
this->_handshake_handler->handleEvent(QUIC_EVENT_HANDSHAKE_PACKET_WRITE_COMPLETE, nullptr);
@@ -1408,10 +1408,10 @@ QUICNetVConnection::_dequeue_recv_packet(QUICPacketCreationResult &result)
if (this->direction() == NET_VCONNECTION_OUT) {
// Reset CID if a server sent back a new CID
// FIXME This should happen only once
- QUICConnectionId cid = packet->destination_cid();
- if (cid.length()) {
- if (this->_quic_connection_id != cid) {
- this->_quic_connection_id = cid;
+ QUICConnectionId src_cid = packet->source_cid();
+ if (src_cid.length()) {
+ if (this->_peer_quic_connection_id != src_cid) {
+ this->_peer_quic_connection_id = src_cid;
}
}
}
--
To stop receiving notification emails like this one, please contact
masaori@apache.org.