I could try writing small application for reproduce this error. It happens in twisted function twisted.web.client.getPage <br>Or may be i shoud try another version of pypy or twisted ( i use trunk version of twisted ) ?<br>
<br><div class="gmail_quote">On Wed, Oct 5, 2011 at 18:57, Max Lavrenov <span dir="ltr"><<a href="mailto:max.lavrenov@gmail.com">max.lavrenov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello Amaury<br>Thanks for response.<br><br>No, i got same error with this line <br>python --jit threshold=-1 /home/e-max/.virtualenvs/pypy/bin/twistd -n dalight<br><br>But If i change urlunparse function and try printing date variable before, all starts work correctly. <br>
<div class="im">
<br>def urlunparse(data):<br> """Put a parsed URL back together again. This may result in a<br> slightly different, but equivalent URL, if the URL that was parsed<br> originally had redundant delimiters, e.g. a ? with an empty query<br>
(the draft states that these are equivalent)."""<br></div> print data<div class="im"><br> scheme, netloc, url, params, query, fragment = data<br> if params:<br> url = "%s;%s" % (url, params)<br>
return urlunsplit((scheme, netloc, url, query, fragment))<br>
<br><br></div><div><div></div><div class="h5"><div class="gmail_quote">On Wed, Oct 5, 2011 at 18:30, Amaury Forgeot d'Arc <span dir="ltr"><<a href="mailto:amauryfa@gmail.com" target="_blank">amauryfa@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
2011/10/5 Max Lavrenov <<a href="mailto:max.lavrenov@gmail.com" target="_blank">max.lavrenov@gmail.com</a>>:<br>
<div>> after ~500 successfull responses i am starting to get error on line "if<br>
> params"<br>
<br>
</div>Looks like a JIT error to me, which has a default threshold of 1000 iterations.<br>
Can you try again with<br>
pypy --jit threshold=-1<br>
to completely disable the JIT?<br>
<font color="#888888"><br>
--<br>
Amaury Forgeot d'Arc<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>