Re: [Catalyst] Testing server hangs with Safari and some others
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@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Testing server hangs with Safari and some others
On 7/26/06, Jonathan Rockway [EMAIL PROTECTED] wrote: 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 :) If you're talking about the issue with StackTrace, it's been resolved (finally) in 0.06 (hit CPAN yesterday). I believe there was also an issue with Authorization::ACL, but that's been fixed as well. Regards, Jonathan Rockway ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Testing server hangs with Safari and some others
[EMAIL PROTECTED] wrote on 07/26/2006 12:21:00 PM: Jonathan Rockway wrote: (BTW, sorry my first few posts to the list are so cynical. It's just that I spend a good precentage of my life with Catalyst and Perl so I've obviously had a chance to discover weird corner cases that cause annoyance. Actually, none of the bugs are Catalyst bugs, they're TT or Crypt::OpenPGP/Crypt::Random/Math::Pari bugs. Glad to know they're software bugs and not user error on my part, though. :) Software leads to hate. Hate leads to cynicism. And I think we all know the feeling - one of the reasons Cat and DBIC don't suffer from this as much as average is that most of the key contributors have a pathological obsession with finding edge cases and making sure they work :) What, I think Matt is trying to say, Cat and DBIC screw you with the center cases, edge cases are problem free. =) (this is a joke, Cat and DBIC are by far two of the most headache free modules I use). ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/