bryancall commented on issue #11446:
URL:
https://github.com/apache/trafficserver/issues/11446#issuecomment-2165970745
Changes for benchmarking and debugging the issue:
```
diff --git a/src/iocore/net/QUICPacketHandler.cc
b/src/iocore/net/QUICPacketHandler.cc
index d336fcd57..017926cb2 100644
--- a/src/iocore/net/QUICPacketHandler.cc
+++ b/src/iocore/net/QUICPacketHandler.cc
@@ -230,7 +230,7 @@ QUICPacketHandlerIn::_recv_packet(int event, UDPPacket
*udp_packet)
EThread *eth = nullptr;
if (vc == nullptr) {
- if (!quiche_version_is_supported(version)) {
+ if (0 && !quiche_version_is_supported(version)) {
Ptr<IOBufferBlock> udp_payload(new_IOBufferBlock());
udp_payload->alloc(iobuffer_size_to_index(DEFAULT_MAX_DATAGRAM_SIZE,
BUFFER_SIZE_INDEX_2K));
QUICPHDebug(QUICConnectionId(scid, scid_len), QUICConnectionId(dcid,
dcid_len), "Unsupported version: 0x%x", version);
diff --git a/src/iocore/net/quic/QUICStreamManager.cc
b/src/iocore/net/quic/QUICStreamManager.cc
index eb241c23a..ff97164fb 100644
--- a/src/iocore/net/quic/QUICStreamManager.cc
+++ b/src/iocore/net/quic/QUICStreamManager.cc
@@ -81,11 +81,19 @@ QUICStreamManager::stream_count() const
QUICStream *
QUICStreamManager::find_stream(QUICStreamId stream_id)
{
+ int32_t count = 0;
for (QUICStream *s = this->stream_list.head; s; s = s->link.next) {
+ ++count;
if (s->id() == stream_id) {
+ if (count > 1000) {
+ Debug("bcall", "Found stream %p in stream_list. count: %d", s,
count);
+ }
return s;
}
}
+ if (count > 5000) {
+ Debug("bcall", "Stream %ld not found in stream_list. count: %d",
stream_id, count);
+ }
return nullptr;
}
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]