summaryrefslogtreecommitdiffstats
path: root/build/external/patches/quicly_0.1.0-vpp
diff options
context:
space:
mode:
authorMathiasRaoul <mathias.raoul@gmail.com>2020-02-07 16:29:05 +0000
committerFlorin Coras <florin.coras@gmail.com>2020-03-27 17:43:33 +0000
commitffdc72da4f086e9a62b946970778495bba400e69 (patch)
tree3633cea2b6aa5f862eccc85a7e80d9db66d6aa96 /build/external/patches/quicly_0.1.0-vpp
parent4e149776890a5ac91bb14957d57def3c73325061 (diff)
quic: Check quicly version tag at compile time
- updates the quicly version to 0.1.0-vpp - adds workaround for quicly_send()/assert_consistency() failure Type: feature Change-Id: I4c7e0ffc720ad9a685b89046a83646d59febd6cd Signed-off-by: MathiasRaoul <mathias.raoul@gmail.com> Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com> Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'build/external/patches/quicly_0.1.0-vpp')
-rw-r--r--build/external/patches/quicly_0.1.0-vpp/0001-quicly-send-assert-consistency.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/build/external/patches/quicly_0.1.0-vpp/0001-quicly-send-assert-consistency.patch b/build/external/patches/quicly_0.1.0-vpp/0001-quicly-send-assert-consistency.patch
new file mode 100644
index 00000000000..2e0caaf1c9b
--- /dev/null
+++ b/build/external/patches/quicly_0.1.0-vpp/0001-quicly-send-assert-consistency.patch
@@ -0,0 +1,21 @@
+diff --git a/lib/quicly.c b/lib/quicly.c
+index 71fa149..668677f 100644
+--- a/lib/quicly.c
++++ b/lib/quicly.c
+@@ -3631,10 +3631,14 @@ int quicly_send(quicly_conn_t *conn, quicly_datagram_t **packets, size_t *num_pa
+ * progress (i.e. due to the payload of lost packet being cancelled), then PTO for the previously sent packet. To accomodate
+ * that, we allow to rerun the do_send function just once.
+ */
+- if (s.num_packets == 0 && conn->egress.loss.alarm_at <= now) {
++ if (conn->egress.loss.alarm_at <= now) {
+ assert(conn->egress.loss.alarm_at == now);
+- if ((ret = do_send(conn, &s)) != 0)
+- return ret;
++ if (s.num_packets == 0) {
++ if ((ret = do_send(conn, &s)) != 0)
++ return ret;
++ } else {
++ conn->egress.loss.alarm_at = now + 1;
++ }
+ }
+ assert_consistency(conn, 1);