09:36
josephholsten joined
15:15
merboutpost_ joined
15:32
merboutpost_ joined
16:22
<jammi>
Hi, what are my options nowadays, if I want to handle requests and responses as streams?
16:28
<jammi>
like stream-handling requests when receiving large chunks of data, like a multi-gigabyte upload
16:28
<jammi>
or streaming responses alike
16:29
<jammi>
also, would be beneficial when doing websockets and multipart ajax requests
17:02
<jammi>
anyone? is it even possible or should I just integrate my own fork of a low-level http server library?
17:14
<raggi>
jammi: you want to probably use an async server
17:14
<raggi>
jammi: thin can do the outgoing streams just fine
17:14
<raggi>
but incoming is generally cached
17:15
<raggi>
i think zbatery or rainbows can do some of this, but i'm less familiar
17:15
<raggi>
and eventmachine_httpserver can do most things, but is much more bare bones
17:17
<jammi>
raggi: ok, any reference examples about how to do it?
17:17
<raggi>
for incoming?
17:17
<raggi>
do take a look at zbatery and rainbows though
17:18
<raggi>
like i say, i'm not so familiar, even though i should be
17:18
<jammi>
took a look at rainbows earlier, but it's pretty hard to use without rackup
17:19
<raggi>
i don't know what you mean
17:19
<jammi>
raggi: I'm using rack like Rack::Handler::Thin or ::Mongrel or ::WEBRick etc..
17:21
<raggi>
it can't be that hard to use wihtout rackup, or else rackup wouldn't load it
17:21
<jammi>
Ebb was one of the first ones that didn't work at all with that approach
17:22
<jammi>
not sure if it's even supposed to work, never got it to run
17:23
<jammi>
also, Thin, at least at one point couldn't handle concurrent requests with handlers, so I downgraded to Mongrel as the default handler
17:27
<jammi>
converting the project to use rackup would also be somewhat painful as it's pretty old already. started as a daemon that used webrick before even mongrel existed, was then updated to use rack in place of webrick and so forth.
17:29
<jammi>
the http handling parts haven't been updated (much) since early 2007 and rack 0.2 or so
17:31
<jammi>
however, uploads are one thing where lower level handling would be necessary. not only for huge requests but also to interrupt and signal progress to other parts of the system, like progress indicators
17:33
<jammi>
my code would also benefit by being websockets -savvy and I'll need some lower level handling for those as well
17:35
<rutlov>
Page title is: File: README [Sunshowers: Web Sockets for Ruby, Rack+Rainbows!].