From e8420f31e8b776fa85062017a91c7f769eb6b3b0 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 7 Dec 2020 18:53:00 +0000 Subject: [PATCH] ss: h1: also handle 429 same as 503 --- lib/secure-streams/protocols/ss-h1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/secure-streams/protocols/ss-h1.c b/lib/secure-streams/protocols/ss-h1.c index 536eadfca..8b8b5ffb7 100644 --- a/lib/secure-streams/protocols/ss-h1.c +++ b/lib/secure-streams/protocols/ss-h1.c @@ -440,7 +440,8 @@ secstream_h1(struct lws *wsi, enum lws_callback_reasons reason, void *user, /* it's just telling use we connected / joined the nwsi */ // break; - if (status == HTTP_STATUS_SERVICE_UNAVAILABLE /* 503 */ ) { + if (status == HTTP_STATUS_SERVICE_UNAVAILABLE /* 503 */ || + status == 429 /* Too many requests */) { /* * We understand this attempt failed, and that we should * conceal this attempt. If there's a specified