From 1cd65f769fb1371994c797c4d86445abd9151b6c Mon Sep 17 00:00:00 2001 From: Dmitri Tikhonov Date: Thu, 10 May 2018 08:11:32 -0400 Subject: [PATCH] http_client: fix priority range generated by -E flag --- test/http_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/http_client.c b/test/http_client.c index d0b303a..5a20807 100644 --- a/test/http_client.c +++ b/test/http_client.c @@ -326,7 +326,7 @@ http_client_on_read (lsquic_stream_t *stream, lsquic_stream_ctx_t *st_h) if (randomly_reprioritize_streams && (st_h->count++ & 0x3F) == 0) { old_prio = lsquic_stream_priority(stream); - new_prio = random() & 0xFF; + new_prio = 1 + (random() & 0xFF); #ifndef NDEBUG const int s = #endif