Skip to content

Commit 779b217

Browse files
committed
更新文档
1 parent 4dc403c commit 779b217

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

docs/en-us/faq.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@ Try switching networks, rebooting the device, or disabling any proxy/VPN affecti
88
This is a connectivity issue between your device and Apple’s servers, and cannot be fixed by the app author.
99

1010
### Push Usage Limit
11-
Valid requests (HTTP 200) have no limit.
12-
If you send over **1000 error requests** (HTTP 400 / 404 / 500) within **5 minutes**, **your IP will be banned for 24 hours**.
11+
Normal usage is not restricted. <b>Abnormal usage may result in the IP being banned for 24 hours.</b>
12+
If more than 1,000 TCP connections are established at the same time, new requests will be rejected. When sending a large number of push notifications, please use HTTP/2 to multiplex TCP connections.
13+
14+
Ban rules:
15+
1. More than 1,000 erroneous requests within 5 minutes (HTTP status codes such as 400, 404, 500, etc.).
16+
2. More than 5 HTTP 405 error requests within 5 minutes
17+
3. More than 5 erroneous requests within 5 minutes, with the User-Agent being “*Mozilla/5.0 (X11; Linux x86_64)”
1318

1419
### Receiving Unknown or Unexpected Pushes (e.g., “NoContent”)
1520
Possible causes:

docs/faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
此问题是用户设备与苹果服务器的连接问题,作者并不能提供任何帮助,需自己尝试解决。
1010

1111
#### 推送使用次数限制
12-
正常使用无任何限制,异常使用<b> IP 会被 BAN 24小时</b>
12+
正常使用无任何限制,异常使用<b> IP 会被 BAN 24小时</b>
13+
同一时刻建立了超过 1000 条 TCP 链接,新增的请求将被拒绝,发送大量推送时,请使用 HTTP/2 复用 TCP 链接。
1314

1415
被BAN规则:
1516
1. 5分钟内超过 1000 次错误请求(HTTP状态码为 400 404 500 等)
1617
2. 5分钟内超过 5 次 405 错误请求(主要是防止某未知软件,会大量 POST api.day.app)
1718
3. 5分钟内超过 5 次错误请求,并且 User-Agent 为 “*Mozilla/5.0 (X11; Linux x86_64)” (疑似绿邮会大量重试未发送成功的短信)
18-
4. 同一时刻建立了超过 1000 条 TCP 链接,请求将被拒绝(发送大量推送时,建议使用 HTTP/2 复用 TCP 链接)
1919

2020
#### 莫名收到未知推送,比如 NoContent
2121
可能的原因:<br>

0 commit comments

Comments
 (0)