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:
parent
454adf55ef
commit
e8420f31e8
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue