Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Can't get it to work asynchronously #6

Closed
isc opened this Issue · 4 comments

2 participants

@isc

I must have missed something obvious, but I can't get it to work asynchronously.
I've got a blank Rails 3.1 application here : https://github.com/isc/async-rails-pg , on which I applied the steps from the readme of em-postgresql-adapter.
The application starts and answers requests, however there is no concurrency ; 5 requests to a 1 second action take 5 seconds. Is there something implicit in the readme that I didn't get ?
Thanks in advance for your help.

@rnine
Owner

Hello isc,

I can confirm I am experiencing the same here.

Ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]
Rails 3.1.2

I am looking into it atm and will hopefully have a fix ready soon.

Thanks for reporting this :)

-Ruben

@rnine
Owner

Support for ActiveRecord 3.1 added in #44ead510611af7d20ad1d2e197bb0934f6e3c8bc

Also make sure to read the updated README :)

@rnine rnine closed this
@isc

It works now, thanks a lot.
Following your updated README I had to add em-http-request to the Gemfile because of the require 'em-synchrony/em-http', however is this require really necessary ? It seems to also be working without it.

@rnine
Owner

Good catch!

As a matter of fact, em-http is completely unnecessary -- I'll remove it from the README to avoid confusion.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.