Re: AJAX pseudo-push

2009-11-12 Thread Scott Gifford
Nicolas George writes: > Hi. > > There is an increasingly popular technique to emulate server-initiated push > over HTTP. I'm sure everyone here knows it well, but for the sake of > completeness: the clients sends a XMLHttpRequest to the server in the > background; the server does not answer it i

Mod_Perl classic, & Apache 1.3 on FreeBSD 64 bit

2009-11-12 Thread Joe Niederberger
Hello, Does anyone have a recommendation on the best verison of mod_perl and apache 1.3 to run on a FreeBSD 64 bit server? Thanks in advance, Joe Niederberger

Re: AJAX pseudo-push

2009-11-12 Thread Nicolas George
Le duodi 22 brumaire, an CCXVIII, Perrin Harkins a écrit : > That's good enough for most applications, and the "nothing to see > here" requests can be handled very quickly. For what I have in mind, the actual content is rather small so the overhead of the empty requests is huge. > If you really n

Re: AJAX pseudo-push

2009-11-12 Thread Nicolas George
[ I think ezmlm has eaten my mail. Sorry if it arrives twice. ] Le duodi 22 brumaire, an CCXVIII, Michael Peters a écrit : > I wouldn't write your own. There are other event based, asynchronous web > servers out there in Perl (HTTP::Server::Multiplex, Net::Server::Coro, > Tatsumaki) so better

Re: AJAX pseudo-push

2009-11-12 Thread Perrin Harkins
On Thu, Nov 12, 2009 at 3:33 PM, Nicolas George wrote: > I will definitely not use polling, because polling means dozen of useless > requests and, when there is actually something, it has to wait to the next > round of polling. That's good enough for most applications, and the "nothing to see her

Re: AJAX pseudo-push

2009-11-12 Thread Jean-Damien Durand
Le jeudi 12 novembre 2009 21:33:48, Nicolas George a écrit : > he fact that HTTP is not connection-oriented > means that the server have to implement cookies and timeouts itself to > track clients instead of relying on the OS TCP stack, but that is not very > hard. Just to clarify your meaning,

Re: AJAX pseudo-push

2009-11-12 Thread Michael Peters
On 11/12/2009 03:33 PM, Nicolas George wrote: If I can not do it with Apache and mod_perl, I will write my own HTTP server. But that is a shame, because it has to serve static content too, and that, Apache does definitely better than me. I wouldn't write your own. There are other event based,

Re: AJAX pseudo-push

2009-11-12 Thread Nicolas George
Hi. Le duodi 22 brumaire, an CCXVIII, Joel Richard a écrit : > I may be off base, but I think this technique would be ineffective since > the server process would be kept busy with an open connection to the > browser. Eventually you'll run out of processes what with all the > clients that end

Re: AJAX pseudo-push

2009-11-12 Thread Perrin Harkins
On Thu, Nov 12, 2009 at 1:53 PM, Nicolas George wrote: > There is an increasingly popular technique to emulate server-initiated push > over HTTP. I'm sure everyone here knows it well, but for the sake of > completeness: the clients sends a XMLHttpRequest to the server in the > background; the serv

Re: AJAX pseudo-push

2009-11-12 Thread Joel Richard
I may be off base, but I think this technique would be ineffective since the server process would be kept busy with an open connection to the browser. Eventually you'll run out of processes what with all the clients that end up waiting for something to happen. HTTP is a pull protocol. :)

AJAX pseudo-push

2009-11-12 Thread Nicolas George
Hi. There is an increasingly popular technique to emulate server-initiated push over HTTP. I'm sure everyone here knows it well, but for the sake of completeness: the clients sends a XMLHttpRequest to the server in the background; the server does not answer it immediately, but keeps it for later w

new book with mod_perl content

2009-11-12 Thread Adam Prime
Developing Web Applications with Apache, MySQL, memcached, and Perl Patrick Galbraith http://ca.wiley.com/WileyCDA/WileyTitle/productCd-0470414642,descCd-tableOfContents.html I saw this mentioned in a blog post, and had a look at the table of contents, and there are a couple of chapters about m

Re: possible issue in mod_perl 2.0.4 with respect to STDERR

2009-11-12 Thread Shibi NS
No its not VHOST The configuration in httpd look like this my $app_home = $ENV{APPS_HOME}; my $config= ConfigLoader::include("$app_home/conf/ ursforms.pl"); my $clog = '"| rotatelogs '. $config->{log_accessfile} . '%y%m%d 1M " common'; my $elog

Re: possible issue in mod_perl 2.0.4 with respect to STDERR

2009-11-12 Thread Torsten Foertsch
On Thu 12 Nov 2009, Shibi NS wrote: > Configuration error log is in my applications httpd config file is > > > ErrorLog = "'| rotatelogs \log\error_log 1M "' > > But if print something on STDERR from mod_perl program , Say debug > print (print STDERR "DEBUG ";) this is going to \log\error_log > ins

possible issue in mod_perl 2.0.4 with respect to STDERR

2009-11-12 Thread Shibi NS
Configuration error log is in my applications httpd config file is ErrorLog = "'| rotatelogs \log\error_log 1M "' But if print something on STDERR from mod_perl program , Say debug print (print STDERR "DEBUG ";) this is going to \log\error_log instead of \log\error_log.NNN Is this is a mod perl