Coder Social home page Coder Social logo

Comments (4)

nahi avatar nahi commented on August 17, 2024

JRuby 1.5.6 test result:

0% jruby -S rake test
(in /home/nahi/git/httpclient)
Loaded suite /home/nahi/.gem/jruby/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
./home/nahi/java/jruby-1.5.6/lib/ruby/1.8/webrick/https.rb:36 warning: instance variable @server_cert not initialized
.............................................................................E..............................................................
Finished in 62.939 seconds.

  1) Error:
test_get_gzipped_content(TestHTTPClient):
Zlib::StreamError: stream error: invalid window bits
    /home/nahi/git/httpclient/lib/httpclient/http.rb:285:in `new'
    /home/nahi/git/httpclient/lib/httpclient/session.rb:616:in `get_body'
    /home/nahi/git/httpclient/lib/httpclient.rb:960:in `do_get_block'
    /home/nahi/git/httpclient/lib/httpclient.rb:767:in `do_request'
    /home/nahi/git/httpclient/lib/httpclient.rb:854:in `protect_keep_alive_disconnected'
    /home/nahi/git/httpclient/lib/httpclient.rb:766:in `do_request'
    /home/nahi/git/httpclient/lib/httpclient.rb:839:in `follow_redirect'
    /home/nahi/git/httpclient/lib/httpclient.rb:521:in `get_content'
    ./test/test_httpclient.rb:495:in `test_get_gzipped_content'

141 tests, 562 assertions, 0 failures, 1 errors
rake aborted!
Command failed with status (1): [/home/nahi/java/jruby-1.5.6/bin/jruby -w -...]

(See full trace by running task with --trace)

1 failure for Zlib window bits is a bug (well, unimplemented feature) of RubyZlib.java of JRuby. I'll try to implement it.

Anyway, I close this issue.

from httpclient.

nahi avatar nahi commented on August 17, 2024

Passes KeepAliveDisconnected test.

from httpclient.

nahi avatar nahi commented on August 17, 2024

https://github.com/zweitag/httpclient/commit/e3d34624e69e69ca6231b1c632fed327cae3cf87

from httpclient.

nahi avatar nahi commented on August 17, 2024

Fixed at [master 2cd3385]. Thank you!

from httpclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.