-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8.1 breaks Celluloid::IO compatibility? #203
Comments
By the way, I'm not sure how to set httprb to use a different timeout class. If I do the following, I still get the backtrace showing timeout/null.rb:
|
@zanker seems like we have lost |
Yeah, I guess this was in the back of my mind but we never looped back on it. I think it would be nice if there were a high-level API to wire everything (socket classes, timeouts) up for Celluloid::IO. Something like: HTTP.backend(:celluloid) @zuk stick with 0.7 until we sort this out |
@zuk Thanks for your report. Will release a patch in a moment. |
@tarcieri absolutely in love with |
I know this is a bit off topic, but any info on how to switch to a different timeout class (e.g. Global, or PerRequest)? Really having a hard time gleaning this from the recent commits. |
@zuk 0.8.2 with fix released. Your variant should work fine (it was failing due to the regression you noticed). So this one should work: HTTP
.get("https://www.google.ca/",
ssl_socket_class: Celluloid::IO::SSLSocket,
timeout_class: HTTP::Timeout::Global,
timeout_options: {
connect_timeout: 5,
read_timeout: 5,
write_timeout: 5
}
) |
Hate to say it but now getting the following error with 8.2:
|
@zuk http.rb 0.8+ is going to need a separate timeout backend for |
Hm... I was testing example locally and it was just fine :(( |
Ah yea, |
Sorry got a bit busy. Http.rb will work with Celluloid, as long as you don't use timeouts. The null timeout backend should work fine with Celluloid, since the |
👍 |
The following code works in 7.x but seems to be broken in 8.1:
Running this under 8.1 gets me:
But under 7.2 it works as expected.
Am I doing something wrong or does the new timeout code break Celluloid::IO compatibility?
The text was updated successfully, but these errors were encountered: