Displaying 20 results from an estimated 10000 matches similar to: "mongrel and long lived connections"
2007 Feb 15
3
Re: Incremental Updates
As an alternative to polling the client, as Ryan describes, you could
consider piggy-backing the status updates on the back of other ajax
responses. Which way you go depends entirely on the nature of your app, in
particular:
1. how frequently it generates ajax traffic anyway
2. how long the server-side process is going to take
If the server-side process takes, say, 20 seconds, polling is a
2008 Jan 02
20
fastthread no longer needed?
I''m confused. Wasn''t threading fixed in 1.8.6, negating the need for
fastthread? Why is fastthread still a requirement of Mongrel? Just
curious. :)
2006 Jul 20
16
Juggernaut Released - (a.k.a Armageddon)
I''ve just released Juggernaut - a plugin for ruby on rails.
Check out the site: http://juggernaut.rubyforge.org
I?ve also finished a demo that illustrates some of Juggernuat?s
capabilities. You can sign up for an account here:
http://alexmaccaw.no-ip.info:3500/login/sign_up . It might be a tad slow
as it?s running from my home machine.
Juggernaut for Ruby on Rails initiates a flash
2006 Aug 10
4
mongrel and comet "implementation"
Hey folks,
I was playing around with adding Comet (a javascript technology used
to receive events without AJAX polling) support to Mongrel. More info
about Comet here:
http://en.wikipedia.org/wiki/Comet_%28programming%29)
I sort of got it working. My code is available at:
http;//cyll.org/comet.tar.gz
Run comet.rb from inside the directory and point your browser at:
http://localhost:5555/
The
2006 Oct 01
7
Log rotation
Hi mongrel-herders,
I''m just wondering what fellow railsers use to rotate their logs in an
orderly fashion? I''d like to do something lightweight, i.e. (1) rename the
logfile (2, optional) create a new empty logfile and (3) send a signal to
each mongrel in the cluster and have them understand it''s time to reopen
their log file handles. This is what I do with apache and
2007 Jul 24
4
GemPlugin or Mongrel::HttpHandler subclass
Hey all
I am working with a technology standard (specific to the commercial
print industry) by which each element within the workflow has bi-
directional HTTP messaging. As each side needs a http server, I
thought I could either:
a) use a gem plugin to modify the behavior of mongrel
b) subclass Mongrel::HttpHandler
In short, its xml messaging between two points; each with a HTTP
client
2007 May 10
3
Camping and Threads!
Hey Everybody!
I was wondering if/how Camping can process more than one request at
once (i.e. not what Rails does). I''m fairly new to threads, and I
bought a book, and read some of it, and dived into the Camping source...
I found some thread stuff but I''m not... entirely sure. So I thought
I would ask!
RYan.
http://yeahnah.org/
2006 Sep 21
10
How do you use Mongrel?
Hey folks,
I''m working on the Mongrel book with Zed, and wanted to get some
feedback from the core users (this list) about how they use Mongrel.
That sounds a bit vague, but I''m interested in hearing things about
frustrating problems / workaround, preferred configurations, if you
have a particular way you set up / store your config files when
developing / deploying an
2008 Jan 14
3
Reading HTTP Request parameters
Hello
I''ve a client which send this request to a mongrel HTTPHandler :
res=Net::HTTP.post_form(URI.parse(''http://localhost:3000/test''),{"a"=>1,"b"=>2})
But in the handler I can''t read the parameters one by one, I can read
the entire String only :
class Serveur
class MyHandler < Mongrel::HttpHandler
def process(req, resp)
2007 Oct 15
9
POST with huge HTTP body
Hi,
I found the following page describing how to stream data from the
server to the client:
http://api.rubyonrails.com/classes/ActionController/Streaming.html
I want to do the opposite, streaming data from the client to the server,
letting the controller saving the data while it''s being received.
In particular, I want to upload large files to the RailsDav
2006 Nov 27
5
win32 problems
I''m setting up a Rails app for a client that uses Windows. I''m
getting this error:
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.18/lib/mongrel/rails.rb:
32: uninitial
ized constant Mongrel::HttpHandler (NameError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:21:in `re
quire''
from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.18/bin/
2006 Aug 24
10
MongrelCluster - How can I make a request to a specific mongrel instance?
In our app we''ve a number of singleton ruby classes that cache static data
in hashes, things like
string values, system config params, etc). In a webbrick environment this
works ok, but we find
in production we have a problem because we have 4 caches, one for each
mongrel instance.
This also isn''t a BIG problem, but our cache.reload() methods are kinda
useless now, because
we
2006 Jun 06
4
Comet/Continuations/Armeggedon
Hello all-
Forgive me if this has been discussed before- I searched the archives
and didn''t see anything. Anyway, here it goes-
There is a lot of talk lately about Comet-based applications- that
is, web apps that hold connections to the server open for a very long
time, to effectively achieve realtime data push from the server to
the browser. Currently, there are a few web
2007 Nov 23
5
Comet style requests with mongrel
Hi,
I''ve been doing some experiments with php and if can use something like
<?php
for ($i = 0; $i < 100; $i++) {
echo "hello world";
flush();
sleep(10);
}
?>
to keep a http link open for an arbitrary amount of time and
routinely display "hello world" in the browser window.
Is is possible to write a mongrel handler to do something similar?
Thanks
2006 Sep 04
4
Mongrel Tuneup Guide: Questions
Hi!
I''ve been following the new mongrel tuneup guide (a huge thanks for
that btw) and here are my results. I''ve basically only gotten to the
point where I''m tuning up 1 mongrel because I suspect I have a
performance problem with my rails app.
http://mongrel.rubyforge.org/docs/how_many_mongrels.html
The first number is the 10s nconns and the second is the max req/s as
2006 Dec 23
2
exception logging
Hi all-
I''m running mongrel with a tiny HttpHandler that hooks into a larger
library I''m working on. I''ve run into a snag with trying to debug
with it in that I''m not entirely sure how to get the exception logs
of errors that are raised.
All I get to stderr is this:
Fri Dec 22 17:16:14 -0800 2006: ERROR: Couldn''t find Models::Contact
without
2007 Nov 07
16
file access with mongrel running as windows service
i have an archive of documents (word, excel, jpeg, png, gif...)
residing on a network share that is accessed via send_file.
when running mongrel on the command line the files are properly
delivered.
with mongrel running as a service they don''t.
now normally i would think that should be fixable by configuring the
service to run under a user that can read the files....
but
2006 May 24
8
Rails, Ubuntu dapper & Mongrel > uninitialized constant Mongrel::HttpHandler error
This on Ubuntu testing with the default ruby1.8 package, RubyForge current
gems, mongrel...this look familiar to anyone??
andre@andre:~/rails_apps/depot$ mongrel_rails
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13/lib/mongrel/rails.rb:44:
uninitialized constant Mongrel::HttpHandler (NameError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require''
from
2008 Jun 03
9
clients hang on large PUTs to Mongrel::HttpHandler-based web service
Hi folks,
I have a problem with a storage web service our group wrote using
Mongrel::HttpHandler We have a consistent problem when using
http PUT to this service when the data is larger than about 4 GB.
The web service actually retrieves and processes the data, but the
clients hang - the TCP connection is still in the ESTABLISHED
state on the client side, but the TCP session no longer exists on
2006 Oct 25
33
[ADV] "Mongrel: Serving, Deploying, and Extending Your Ruby Applications" BOOK
Time for some all time pimpage folks.
Me and Matt Pelletier wrote a small PDF book on Mongrel entitled: "Mongrel: Serving, Deploying, and Extending Your Ruby Applications" since we really wanted you to know what it was about. It''s published by Addison Wesley Professional, has just over 100 pages of goodness, and is available for $14.99 at:
http://safari.oreilly.com/0321483502