MagicStack / MagicStack/uvloop
unable to perform operation on <WriteUnixTransport closed=True reading=False 0x7f16825f8ba0
未关闭
还没有人认领这个 Issue。
- 主要语言
- Cython
- 星标
- 11.9k
- 派生
- 616
- PR 合并指标
- 30 天内没有已合并 PR
描述
- uvloop version: 0.17.0
- Python version: 3.10.7
- Platform: ubuntu 20.04
- Can you reproduce the bug with
PYTHONASYNCIODEBUGin env?: yes - Does uvloop behave differently from vanilla asyncio? How?: yes
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/pytgcalls/methods/groups/join_group_call.py", line 275, in internal_sender
await self._binding.send(request)
File "/usr/local/lib/python3.10/dist-packages/pytgcalls/binding.py", line 212, in send
await self._send({
File "/usr/local/lib/python3.10/dist-packages/pytgcalls/binding.py", line 221, in _send
self._js_process.stdin.write(
File "/usr/lib/python3.10/asyncio/streams.py", line 326, in write
self._transport.write(data)
File "uvloop/handles/stream.pyx", line 674, in uvloop.loop.UVStream.write
File "uvloop/handles/handle.pyx", line 159, in uvloop.loop.UVHandle._ensure_alive
RuntimeError: unable to perform operation on <WriteUnixTransport closed=True reading=False 0x7f16825f8ba0>; the handler is closed
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 uvloop/handles/stream.pyx 和 uvloop/handles/handle.pyx 中的 traceback 开始,然后将报告的行为与 Python 的 asyncio streams 进行比较。使用提供的 uvloop、Python 和 Ubuntu 版本重现已关闭的 WriteUnixTransport 失败;当不同的行为被隔离并由回归测试覆盖时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- networking
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100