
- Replace the solution to the quicly time skew assert with h2o/quicly PR#222 which was merged upstream after verification that it resolved the vpp issue. Type: refactor Change-Id: I26df08e4108b054a28f50c964ddff1c80a592339 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
17 lines
342 B
Diff
17 lines
342 B
Diff
diff --git a/lib/quicly.c b/lib/quicly.c
|
|
index 95d5f13..3f4fd18 100644
|
|
--- a/lib/quicly.c
|
|
+++ b/lib/quicly.c
|
|
@@ -351,7 +351,10 @@ static __thread int64_t now;
|
|
|
|
static void update_now(quicly_context_t *ctx)
|
|
{
|
|
- now = ctx->now->cb(ctx->now);
|
|
+ int64_t newval = ctx->now->cb(ctx->now);
|
|
+
|
|
+ if (now < newval)
|
|
+ now = newval;
|
|
}
|
|
|
|
/**
|