[Catalyst] Testing server hangs with Safari and some others
apv
apv at sedition.com
Wed Jul 26 18:38:48 CEST 2006
Hmmm. I'm not using CGI (it hangs on the most minimal
install/welcome-page) and I have the most recent regular TT2 release.
I'm glad you mention it though b/c I did have the problem you list with
another TT2 form (not in Catalyst) and I found on antoher list that
naming the CGI instance or calling it with a namespace fixed the
hanging. [% USE CGI(foo) %] or [% USE mycgi = CGI(foo) %].
http://www.template-toolkit.org/pipermail/templates/2002-May/003242.html
I wrote a chat server about 4 years ago that had the same problem of
hanging on Safari but not on the others. I can't remember how I solved
it now but there was something different about the way Safari handled
the socket blocking on reads between headers and body, I think. I'll
try to dig up that code and compare it to the test server code.
-Ashley
On Wednesday, Jul 26, 2006, at 08:16 US/Pacific, Jonathan Rockway wrote:
>
>> Doh, 5.7001
>>
>
> I had this problem (on many platforms) with older versions of TT. For
> some reason, TT would time out if [% USE CGI %] appeared anywhere in
> any templates. Sometimes. Other times it wouldn't. It was really
> weird, and I pulled out a lot of hair debugging it, but could never
> get enough info to file a bug report. For all I know, this is still a
> problem; I stopped using CGI and just printed out my forms manually.
> (I was also using cgi's escape function, to escape UTF-8 characters in
> URIs [required by the W3C, apparently, although I don't know why], but
> I eventually got TT's [% foo | uri | html %] to work -- if you set
> TT's charset to UTF-8, it won't escape URIs. Irritating. I reported
> this as a bug, and it was immediately marked "resolved" without being
> resolved. *sigh*)
>
> As for debugging this, use Carp and then "confess" in various places.
> Eventually you'll put the confess somewhere after the timeout, and
> then you can narrow down what exactly is causing the problem.
> Although, sometimes catalyst eats dies for some reason, and you don't
> get this (with the server). In that case, try just running perl
> -MMyApp -e 'MyApp->start'.
>
> Any advice from the developers on how to get "die" to be more fatal
> would be greatly appreciated :)
>
> Regards,
> Jonathan Rockway
>
>
> <signature.asc>_______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/[email protected]/
> Dev site: http://dev.catalyst.perl.org/
More information about the Catalyst
mailing list