python / python/cpython

urllib2 works slowly with proxy on windows

Offen
#73,719 23 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

3.10 3.11 3.12 OS-windows performance stdlib
Vorherrschende Sprache
Python
Sterne
77.2k
Forks
36k
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

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']
    

    Beitragsleitfaden

    Beitragsleitfaden öffnen

    Erste Schritte

    1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
    2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
    3. Forke das Repository und arbeite in einem Branch.
    4. Öffne einen Pull Request, der die Issue-Nummer nennt.

    Rechercherichtung

    Beginne damit, die Windows-Proxyanfrage mit checklib-py3.py zu reproduzieren, und vergleiche ihre Laufzeiten mit test.py und den angehängten Performance-Ergebnissen. Lies request.patch und die Hinweise zu socket.py, und prüfe anschließend PR #247 auf frühere Arbeiten. Der Abschluss sollte einen vereinbarten Fix für die gemeldete urllib-Proxyverlangsamung und eine Performance-Validierung umfassen, aber das Issue definiert keinen präzisen Abnahmetest.

    Vom Indexierungsmodell aus dem Issue-Text verfasst.

    Bewertung

    Tech-Stack
    python
    Bereich
    networking
    Issue-Typ
    Bug
    Schwierigkeit
    4/5
    Geschätzter Aufwand
    3-5 Tage
    Aktivitätsstatus
    Veraltet
    Klarheit
    Muss geklärt werden
    Anfängerfreundlichkeit
    25/100

    Neue Issues direkt in Ihr Postfach

    Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.