Project

General

Profile

Segnalazione #781

socket.gethostby* bloccanti

Added by Enrico Zini about 5 years ago. Updated almost 5 years ago.

Status:
Chiuso
Priority:
Normale
Assignee:
Target version:
Start date:
03/28/2019
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

In manager/stores.py le funzioni ip_to_name e name_to_ip usano socket.gethostbyname e socket.gethostbyaddr che sono chiamate bloccanti, e fermano il web server fino alla risposta da parte del DNS.

Sarebbero da sostituire con versioni asincrone (per esempio tornado.netutil.Resolver o aiodns)

Associated revisions

Revision 42a8b7da (diff)
Added by Elena Grandi almost 5 years ago

Use aiodns to query hosts by name. refs #781

Revision 723e057b (diff)
Added by Elena Grandi almost 5 years ago

Added new dependency: aiodns. refs: #781

Revision 8953e73c
Added by Enrico Zini almost 5 years ago

Sync with master. refs: #781

Revision b8ad3285
Added by Enrico Zini almost 5 years ago

Merged #781. Closes: #781

History

#1

Updated by Elena Grandi almost 5 years ago

  • Status changed from Nuovo to In elaborazione
  • Assignee set to Enrico Zini

Fatta name_to_ip nel branch t781 (che è funzionante e si potrebbe già mergiare).

Per ip_to_name sto avendo problemi a farlo con aiodns (e non mi pare che lo faccia neanche tornado.netutil.Resolver); dato che la nuova versione di aiodns lo fa, credo che valga la pena aspettare la release di debian e vedere se aiodns viene aggiornato nella nuova testing farne backport.

Riassegno per eventuale merge parziale e per opinione sul piano, poi mi si può riassegnare il ticket per proseguire.

#2

Updated by Enrico Zini almost 5 years ago

  • Status changed from In elaborazione to Chiuso

Fatto merge in master.

Also available in: Atom PDF