[Twisted-Python] reverse web proxy & threads

Itamar Turner-Trauring (aka Shtull-Trauring) itamar at itamarst.org
Mon Nov 2 23:33:27 EST 2009


On Mon, 2009-11-02 at 21:11 +0600, Artem Bokhan wrote:
> Hello!
> 
> I'm playing with reverse proxy from examples
> (Twisted-8.2.0/doc/web/examples/proxy.py). May somebody explain what
> part of code uses threads there?
> 
> pstree -p | grep python
> 
> -python(12786)-+-{python}(12795)
>                 |-{python}(13050)
>                 |-{python}(15547)
>                 `-{python}(20767)

DNS lookups, probably: gethostbyname blocks your process, otherwise.




More information about the Twisted-Python mailing list