Yes, I need to be able to:
1. POST file to server, buffer it on a tempfile and upload it to s3 later
2. GET fiie from s3 and stream it in chunks to the client
Although the files are private, but I have access to the private and access key and bucket name. Would not em-http-request incur in the same error? As in this sample happening returns a em-http response, and #stream is actually just the em-http #stream method.
Also.. did you look at the example in the goliath source, "stream.rb" ?
Currently I have this post/get streaming process working fine for the filesystem backend option, currently i'm trying to figure whats happening with that error in my s3 backend implementation.