fix: always release response body, should fix issue #166

pull/169/head
lyc8503 2025-12-24 00:03:18 +08:00
parent baf489e3cb
commit 51bf3be378
3 changed files with 9 additions and 3 deletions

View File

@ -19,6 +19,7 @@ A more advanced, serverless, and free uptime monitoring & status page solution,
- Custom status code & keyword checks for HTTP(s)
- Downtime notification supporting [100+ notification channels](https://github.com/caronc/apprise/wiki)
- Customizable Webhook
- Multi-language support (English/Chinese)
- Status page
- Interactive ping (response time) chart for all types of monitors
- Scheduled maintenances alerts & Incident history page
@ -74,8 +75,10 @@ To contribute new features or customize your deployment furthermore, see [here](
- [x] Simpler config example
- [x] Upcoming maintenances
- [x] Universal Webhook upgrade
- [ ] i18n...? (maybe)
- [x] i18n...? (maybe)
- [ ] ICMP via proxy?
- [x] Add default UA
- [ ] Customizable footer
- [ ] New header logo
- [x] Customizable footer
- [x] New header logo
- [ ] Improve CPU time usage
- [ ] Local deployment

View File

@ -19,6 +19,7 @@
- 可自定义的 HTTP(s) 状态码和关键字检查
- 支持 [100 多个通知渠道](https://github.com/caronc/apprise/wiki) 的宕机消息通知
- 可自定义的 Webhook
- 多语言支持 (中文/英文)
- 状态页面
- 所有类型监控的交互式 ping响应时间图表
- 响应式 UI自适应PC/手机屏幕,及亮色/暗色系统主题

View File

@ -304,6 +304,8 @@ export async function getStatus(
response.status,
response.text.bind(response)
)
try { await response.body?.cancel() } catch(e) {} // Always try to cancel body, see issue #166
if (err !== null) {
console.log(`${monitor.name} didn't pass response check: ${err}`)
}