python / python/cpython

urllib2 works slowly with proxy on windows

Đang mở
#73,719 23 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

3.10 3.11 3.12 OS-windows performance stdlib
Ngôn ngữ chính
Python
Star
77.2k
Fork
36k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

BPO 29533
Nosy @pfmoore, @orsenthil, @tjguk, @schlamar, @zware, @eryksun, @zooba, @juliadolgova
PRs
  • python/cpython#247
  • Files
  • checklib.py: just make a call to urllib2.urlopen("https://docs.python.org")
  • socket.py: not a patched lib. Has debug lines near 141 line. Use it with checklib.py.
  • test.py: compares performance of gethostbyaddr with gethostbyname_ex
  • log.txt: result of test.py on my computer (Windows 8, 64 bit)
  • socket.patch: not actual (wrong) patch
  • compare_ie_urllib.txt
  • request.patch
  • checklib-py3.py: make a request to http://python.org/ via proxy using urllib
  • compare_urllib_progs.png
  • 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-02-11.08:43:27.110>
    labels = ['3.8', '3.9', '3.10', 'performance', 'library', 'OS-windows']
    title = 'urllib2 works slowly with proxy on windows'
    updated_at = <Date 2021-03-05.13:23:25.513>
    user = 'https://github.com/juliadolgova'
    

    bugs.python.org fields:

    activity = <Date 2021-03-05.13:23:25.513>
    actor = 'eryksun'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)', 'Windows']
    creation = <Date 2017-02-11.08:43:27.110>
    creator = 'juliadolgova'
    dependencies = []
    files = ['46628', '46629', '46630', '46631', '46632', '46649', '46661', '46766', '46813']
    hgrepos = []
    issue_num = 29533
    keywords = ['patch']
    message_count = 23.0
    messages = ['287597', '287905', '287944', '287945', '287976', '288071', '288118', '288139', '288172', '288179', '288413', '290482', '290807', '290833', '290841', '290884', '291222', '291223', '291823', '291884', '291953', '291964', '291972']
    nosy_count = 8.0
    nosy_names = ['paul.moore', 'orsenthil', 'tim.golden', 'schlamar', 'zach.ware', 'eryksun', 'steve.dower', 'juliadolgova']
    pr_nums = ['247']
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue29533'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']
    

    Hướng dẫn đóng góp

    Mở hướng dẫn đóng góp

    Bắt đầu từ đâu

    1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
    2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
    3. Fork repository và làm thay đổi trên một nhánh.
    4. Mở pull request có tham chiếu số hiệu của issue.

    Hướng nghiên cứu

    Bắt đầu bằng cách tái hiện yêu cầu proxy trên Windows với checklib-py3.py và so sánh thời gian thực thi của nó với test.py và các kết quả hiệu năng đính kèm. Đọc request.patch và các ghi chú về socket.py, sau đó xem xét PR #247 để biết các công việc trước đây. Khi hoàn tất, cần có một bản sửa được thống nhất cho tình trạng proxy urllib bị chậm được báo cáo và việc xác thực hiệu năng, nhưng issue không định nghĩa một acceptance test chính xác.

    Do mô hình lập chỉ mục viết ra từ nội dung của issue.

    Đánh giá

    Công nghệ
    python
    Lĩnh vực
    networking
    Loại issue
    Lỗi
    Độ khó
    4/5
    Thời gian dự kiến
    3-5 ngày
    Mức độ hoạt động
    Đình trệ
    Độ rõ ràng
    Cần làm rõ
    Mức phù hợp với người mới
    25/100

    Nhận issue mới trong hộp thư của bạn

    Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.