好吧，实际是有缓存的……
那要不我把缓存去掉？
其实卡的主要原因是getaddrinfo总是fail



On Fri, Sep 6, 2013 at 10:35 PM, Proton <notifications@github.com> wrote:

> In src/start_client.py:
>
> >      import threading
> > -
> > -    class ResolveIt(threading.Thread):
> > -        def __init__(self, host):
> > -            threading.Thread.__init__(self)
> > -            self.host = host
> > -
> > -        def run(self):
> > -            host = self.host
> > -            socket.getaddrinfo(host, 80)
> > -            socket.gethostbyname(host)
> > -
> > +    from functools import partial
> > +
> > +    def cached(f):
>
> 我再去调查下吧。我记得特意在win上试了下是有缓存的（本来这个就是给win打的补丁）
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/feisuzhu/thbattle/pull/22/files#r6209190>
> .
>