1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

ss: h1: also handle 429 same as 503

This commit is contained in:
Andy Green 2020-12-07 18:53:00 +00:00
parent 454adf55ef
commit e8420f31e8

View file

@ -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