summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2019-10-31 12:21:27 -0400
committerDamjan Marion <dmarion@me.com>2019-10-31 18:39:45 +0000
commitea7d4fe148f798c00bd63c9601b4a046a810a9ee (patch)
treefc7cdec5b456a839c8cead125bd83ad1d644c141 /src
parent45b7973dddc9f1b50d7f20cc1abe150b2ad9931f (diff)
quic: fix wrong error checking
- Revert error checking to previous ASSERT Type: fix Fixes: 7c7fa9066 Signed-off-by: Dave Wallace <dwallacelf@gmail.com> Change-Id: I6d915d88bf932c74f9b866aec3bd1531e0cb47f4
Diffstat (limited to 'src')
-rw-r--r--src/plugins/quic/quic.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/plugins/quic/quic.c b/src/plugins/quic/quic.c
index 076fd5eed0f..66796c7fb49 100644
--- a/src/plugins/quic/quic.c
+++ b/src/plugins/quic/quic.c
@@ -509,12 +509,7 @@ quic_on_receive (quicly_stream_t * stream, size_t off, const void *src,
/* Streams live on the same thread so (f, stream_data) should stay consistent */
rlen = svm_fifo_enqueue (f, len, (u8 *) src);
stream_data->app_rx_data_len += rlen;
- if (PREDICT_FALSE (rlen != len))
- {
- clib_warning ("ERROR: Could not enqueue all data (rlen %u, len %u)",
- rlen, len);
- ASSERT (rlen == len);
- }
+ ASSERT (rlen >= len);
app_wrk = app_worker_get_if_valid (stream_session->app_wrk_index);
if (PREDICT_TRUE (app_wrk != 0))
app_worker_lock_and_send_event (app_wrk, stream_session,