python / python/cpython

urllib2 works slowly with proxy on windows

Aperta
#73,719 23 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

3.10 3.11 3.12 OS-windows performance stdlib
Lingua principale
Python
Stelle
77.2k
Fork
36k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

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

    Guida per i contributori

    Apri la guida per i contributori

    Come iniziare

    1. Leggi tutta la issue e poi la guida ai contributi del progetto.
    2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
    3. Fai un fork del repository e lavora su un branch.
    4. Apri una pull request che faccia riferimento al numero della issue.

    Direzione di ricerca

    Inizia riproducendo la richiesta proxy Windows con checklib-py3.py e confronta i relativi tempi con quelli di test.py e dei risultati delle prestazioni allegati. Leggi request.patch e le note su socket.py, quindi esamina PR #247 per il lavoro precedente. Il completamento dovrebbe includere una correzione concordata per il rallentamento segnalato del proxy urllib e la validazione delle prestazioni, ma l’issue non definisce un test di accettazione preciso.

    Scritto dal modello di indicizzazione a partire dal testo della issue.

    Valutazione

    Stack tecnologico
    python
    Ambito
    networking
    Tipo di issue
    Bug
    Difficoltà
    4/5
    Tempo stimato
    3-5 giorni
    Stato di attività
    Ferma
    Chiarezza
    Da chiarire
    Idoneità per principianti
    25/100

    Ricevi le nuove issue nella tua casella

    Un breve riepilogo di issue GitHub adatte ai principianti.