Single use proxy in multi-tenant application
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- javascript, node.js
- 领域
- networking
调研方向
从示例中所示的 createProxyServer 和 proxy.web 调用开始;检查如何初始化每个请求对应的代理,以及在不使用监听服务器时 proxy.close() 是否适用。完成的标准是记录代理的生命周期,并确认这种模式是否会保留资源或需要清理。
由索引模型根据 Issue 内容生成。
描述
Hi, would http-proxy introduce a memory leak if a proxy server was created for each request?
At what point should proxy.close() be called? (or it doesn't matter as the server does not listen on a port?)
// Each request:
const proxy = createProxyServer({
target: ...,
changeOrigin: true,
followRedirects: false,
})
proxy.on('proxyReq', function (proxyReq, req, res, options) {
...
proxyReq.write(request.body)
})
proxy.web(request, response, {
target: ...
})
- 主要语言
- JavaScript
- 星标
- 14.1k
- 派生
- 2k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
http-party/node-http-proxy 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
http-party/node-http-proxy#1719 ·
-
难度 3/5 1-2 天 新手友好度 72/100
http-party/node-http-proxy#1721 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 55/100
http-party/node-http-proxy#1715 · 1 条评论 · 5 个 reaction ·
-
难度 1/5 1 小时以内 新手友好度 15/100
http-party/node-http-proxy#1711 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
http-party/node-http-proxy#1710 · 5 个 reaction ·
查看 http-party/node-http-proxy 的全部 Issue
相似的 Issue
-
channels:edit check:passed
难度 1/5 1 小时以内 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
-
external-plugin needs-review:HIGH ready-for-review
难度 2/5 1-3 小时 新手友好度 65/100
github/awesome-copilot#6346 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
kingcharleslzy-ai/dsh-purge#179 ·
维护者通常 1 天内回复
-
status: ready
难度 2/5 1-3 小时 新手友好度 64/100
melodic-software/claude-code-plugins#15008 · 1 条评论 ·
维护者通常 1 天内回复