Use select.poll instead of select.select in SocketServer.BaseServer.serve_forever
未關閉
還沒有人認領這個 Issue。
3.13
performance
stdlib
topic-socket
type-feature
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
| BPO | 31610 |
|---|---|
| Nosy | @vstinner, @giampaolo |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = None
created_at = <Date 2017-09-27.11:24:44.981>
labels = ['library', 'performance']
title = 'Use select.poll instead of select.select in SocketServer.BaseServer.serve_forever'
updated_at = <Date 2017-09-28.15:05:48.447>
user = 'https://bugs.python.org/bboneva'
bugs.python.org fields:
activity = <Date 2017-09-28.15:05:48.447>
actor = 'vstinner'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2017-09-27.11:24:44.981>
creator = 'bboneva'
dependencies = []
files = []
hgrepos = []
issue_num = 31610
keywords = []
message_count = 4.0
messages = ['303127', '303247', '303251', '303254']
nosy_count = 3.0
nosy_names = ['vstinner', 'giampaolo.rodola', 'bboneva']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'performance'
url = 'https://bugs.python.org/issue31610'
versions = []
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先在 Python 標準函式庫原始碼中找到 SocketServer.BaseServer.serve_forever,並檢查其目前的 select.select 呼叫是如何使用的。接著檢查現有函式庫測試中與伺服器行為相關的部分,然後驗證事件迴圈使用 select.poll,同時維持其目前的服務行為。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- networking
- Issue 類型
- 重構
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 32/100