From: <mod...@li...> - 2005-05-09 04:32:23
|
I can answer portions of my own questions at this point. If others have tried to run the old Perl server recently, perhaps they're running into the same problems. I should have mentioned that my OS is FreeBSD 5.3, since that could be relevant for the libraries used. I have Perl 5.8.6 installed. My confusion about clients and servers was cleared up by looking at the code for pubsub_test.cgi. It mentioned that you can run it at the command line (as you can any script that uses CGI.pm). You do need to set some environmental variables to feed it the arguments it would get when called from a browser. In any case this lets you test the server setup by running scripts on the server, so you're not dependent on any browser details. After some experimentation I found that most of the tests were failing because PubSub::Server was failing to flush its output buffers. There is a 300 second delay built into the code, so if you sit around long enough, you get to see the test fail. If you're less patient, you think it's hung. I added commands to flush the output buffers after three "send" commands in Server.pm, after which the majority of the tests gave an "OK" report. So far I still don't understand why the `$| = 1;' command in PubSub::Server->route_to_javascript doesn't do the trick. I had presumed it would force unbuffered output, and I haven't found anything in the Apache 2 or mod_perl documentation to suggest anything to the contrary. With these patches all tests but the last two -- replay of events and replay of events with warp factor -- are now OK. I have yet to explore the nature of these failures. Are they something I should worry about? If there is an interest in updating the software or the INSTALL document, please let me know, and I can attempt a slightly more coherent description of what I've found. Thanks, Bob Carlitz On May 7, 2005, at 1:58 PM, mod...@li... wrote: > I was interested in using the Perl server from the 2004-04-20 > distribution, assuming it can be integrated with other files on the > server. I'm running Apache 2.1.3 with mod_perl 1.999_20 but was > unable to get things running without some adjustments, as detailed > below: > > The configuration generated by ModPubSub.pm failed with an error > message "Option ExecCGI now allowed here." I copied the configuration > into httpd.conf and commented out the "$Directory =" and "$Location =" > lines in ModPubSub.pm. I updated the syntax to use > "PerlResponseHandler ModPerl::Registry" and "PerlOptions > +ParseHeaders". I also created an alias for /kn to > /var/www/mod_pubsub/cgi-bin/pubsub.cgi. This lets me start up Apache > with mod_pubsub running. > > Most of the test programs failed after the one that tries to create a > tunnel. I'm using a Mac and tried Safari and Firefox with the same > results. I did verify that mod_pubsub was generating directories and > files in /kn_events. Should I conclude that my problems are on the > browser side rather than the server side? > > If I can get this stuff running, I could perhaps help with your > documentation effort. I'm not sure how much information you had on > the currently unavailable Wiki, but I'm finding things pretty hard to > dig through. > > Thanks, > Bob Carlitz > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. > Get your fingers limbered up and give it your best shot. 4 great > events, 4 > opportunities to win big! Highest score wins.NEC IT Guy Games. Play to > win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 > _______________________________________________ > Mod-pubsub-developer mailing list > Mod...@li... > https://lists.sourceforge.net/lists/listinfo/mod-pubsub-developer |