[Twisted-Python] Newbie Problem
damonkohler at yahoo.com
Wed Sep 13 18:24:49 EDT 2006
Whoops. Found the problem. Wasn't using the client factory I created and
instead used a new factory in the reactor call :(
--- Damon Kohler <damonkohler at yahoo.com> wrote:
> Thanks for the help. Unfortuantely, I'm still stuck. I'm on OS X and so I'm
> using ktrace. So far, it hasn't given me much insight. Also, it doesn't
> to be the sys.stdin call causing the trouble since I can replace that with
> a string and get the same results. Any other ideas?
> --- Jean-Paul Calderone <exarkun at divmod.com> wrote:
> > On Tue, 12 Sep 2006 21:11:30 -0700 (PDT), Damon Kohler
> > <damonkohler at yahoo.com> wrote:
> > >This is probably something simple. I'm having some trouble with this
> > bit
> > >of code below. I start it up once as a server, then a second time as the
> > client
> > >connecting to localhost. However, it never actually seems to connect. Both
> > >sides just wait indefinitely. I'm a bit stuck as to how to debug this, so
> > >someone has a solution for me and could tell me how I would have figured
> > >out, that would be great!
> > Most likely the problem is sys.stdin.readline(). I suggest taking a look
> > at twisted.internet.stdio as a way to eliminate your ConsoleInput class
> > and the uses of the reactor-private method addReader().
> > If I were going to try to track down the cause of the hang, I'd probably
> > start with strace to see where the processes are waiting.
> > Jean-Paul
> > _______________________________________________
> > Twisted-Python mailing list
> > Twisted-Python at twistedmatrix.com
> > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the Twisted-Python