[Twisted-web] wmfactory not consistently executed

Dean Skuldt twisted-web@twistedmatrix.com
Sat, 10 Jan 2004 10:37:31 -0800 (PST)


It takes several tries for the error to occur.  Most often, the wmfactory
method is executed, but once in a while it fails.  When I test it, I issue
requests in a browser about once a second. The following shows three successes
followed by one failure:

2004/01/10 12:29 PST [HTTPChannel,0,127.0.0.1] in test wmfactory
2004/01/10 12:29 PST [HTTPChannel,0,127.0.0.1] 127.0.0.1 - -
[10/Jan/2004:20:29:19 +0000] "POST / HTTP/1.1" 200 74 "http://127.0.0.1:8088/"
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204"
2004/01/10 12:29 PST [HTTPChannel,0,127.0.0.1] in test wmfactory
2004/01/10 12:29 PST [HTTPChannel,0,127.0.0.1] 127.0.0.1 - -
[10/Jan/2004:20:29:20 +0000] "POST / HTTP/1.1" 200 74 "http://127.0.0.1:8088/"
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204"
2004/01/10 12:29 PST [HTTPChannel,0,127.0.0.1] in test wmfactory
2004/01/10 12:29 PST [HTTPChannel,0,127.0.0.1] 127.0.0.1 - -
[10/Jan/2004:20:29:21 +0000] "POST / HTTP/1.1" 200 74 "http://127.0.0.1:8088/"
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204"
2004/01/10 12:29 PST [HTTPChannel,0,127.0.0.1] 127.0.0.1 - -
[10/Jan/2004:20:29:23 +0000] "POST / HTTP/1.1" 200 74 "http://127.0.0.1:8088/"
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204"

I should also note that I wrote this test script to hone in on the problem.  In
my original script I also used a wvupdate method which DID consistently execute
for every request/response, but as with the test script the wmfactory method
didn't consistently execute.  

Has anyone experienced this?

Thanks, 

Dean

--- Dean Skuldt <deanskuldt@yahoo.com> wrote:
> I'm using 
> twistd -y test.py
> It's the correct script - thanks for checking that.
> --- Michal Pasternak <michal@pasternak.w.lub.pl> wrote:
> > Dean Skuldt [Sat, Jan 10, 2004 at 09:07:43AM -0800]:
> > > Thanks for your quick response. I tried it out, and I'm observing the
> same
> > > behaviour. Hmmmmm.
> > 
> > How are you running that script? On my machine (Twisted 1.1.1, Python 2.3)
> > when run with twistd -noy test.py works just okay. Perhaps the reason
> you're
> > not getting expected behaviour is your fault (eg. you're running wrong
> > script).
> > 
> > _______________________________________________
> > Twisted-web mailing list
> > Twisted-web@twistedmatrix.com
> > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
> http://hotjobs.sweepstakes.yahoo.com/signingbonus
> 
> _______________________________________________
> Twisted-web mailing list
> Twisted-web@twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus