Permalink
Commits on Dec 20, 2010
  1. Updated README.txt for 2.1.6.

    committed Dec 20, 2010
  2. Set encoding to ASCII_8BIT as a response.

    In the future, we should try to detect 'Content-Encoding' HTTP header
    and handle body encoding properly like open-uri.rb.
    committed Dec 20, 2010
  3. Make Keep-Alive test use threads properly.

    The former test depends on threads execution order so it didn't work as
    expected when I increased client threads or let it run on JRuby.
    Inserted step-by-step assertions.
    committed Dec 20, 2010
Commits on Dec 15, 2010
  1. Revert "Adding local_sockaddr"

    This reverts commit bc6a1b1.
    
    Conflicts:
    
    	lib/httpclient.rb
    	lib/httpclient/session.rb
    committed Dec 15, 2010
  2. Revert "Getting rid of sockaddr/bind attempt, replacing with local_ho…

    …st and local_port"
    
    This reverts commit e464596.
    
    Conflicts:
    
    	lib/httpclient.rb
    	lib/httpclient/session.rb
    
    Setting fixed local_host and local_port does not work well with current
    SessionManager implementation...
    committed Dec 15, 2010
  3. Invalidate pooled sessions for the same destination when we got a Kee…

    …pAliveDisconnected exception. closes #30.
    
    I know the original intent of #30 is 'create a new (non cached) session
    when we got a KeepAliveDisconnected' but the suggested fix could create
    too much session to the same site I guess... So at this time, I decided
    to invalidate all sessions to the same site. It must include live
    sessions (not expired) but it should not cause performance degrade in
    the situation such as we got KeepAliveDisconnected.
    committed Dec 15, 2010
Commits on Dec 14, 2010
  1. Merge https://github.com/icblenke/httpclient into icblenke

    Conflicts:
    	lib/httpclient.rb
    	lib/httpclient/session.rb
    committed Dec 14, 2010
  2. Do not leak sessions (and thus filedescriptors and TCP connections) f…

    …rom the pool. Fix bug http://github.com/nahi/httpclient/issues/issue/29 .
    
    closes #29.
    Signed-off-by: Hiroshi Nakamura <nahi@ruby-lang.org>
    Xuân Baldauf committed with Feb 24, 2010
Commits on Dec 13, 2010
  1. Replace timeout only in CRuby 1.8. Timeout.timeout of CRuby 1.9 and J…

    …Ruby are already doing the same optimization.
    committed Dec 13, 2010
Commits on Dec 12, 2010
  1. Applied a patch from ibc: DigestAuth header quotation error: closes #27.

    qup and algorithm is not required to be quoted. RFC2617 includes an
    example 'qop="auth,auth-int"' though...
    committed Dec 12, 2010
  2. Applied the patch in #44: let Connection#pop raise the Exception when…

    … the request finished with an Exception.
    committed Dec 12, 2010
  3. RDoc typo fixed. closes #32.

    committed Dec 12, 2010
  4. Added transparent_gzip_decompression property. closes #42.

    Applied a patch from Teshootub7.  With setting
    HTTPClient#transparent_gzip_decompression = true, HTTPClient tries to do
    gzip/deflate content transmission. Following explanation is by
    Teshootub7.
    
    All you need to use "transparent gzip decompression" is done by:
    
      clnt.transparent_gzip_decompression = true
    
    Then you can retrieve a document as usual.
    
      res = clnt.get("http://www.debian.org/")
    
    The document is transferred with gzip compressed.
    
      res.header["Content-Encoding"]
      => ["gzip"]
      res.header["Content-Length"]
      => ["4422"]
      res.content.length
      => 13942
    
    And you can read the content without knowing it is compressed or not.
    committed Dec 12, 2010
  5. Use absolute URI iif via proxy AND not HTTPS. closes #41.

    Thanks tai for reporting this.
    committed Dec 12, 2010
  6. when debugging, don't dump binary data; display message instead

    Signed-off-by: Hiroshi Nakamura <nahi@ruby-lang.org>
    chetan committed with Sep 7, 2010
  7. rewind file part after dumping it [caused problem when using digest a…

    …uth]
    
    Signed-off-by: Hiroshi Nakamura <nahi@ruby-lang.org>
    chetan committed with May 5, 2010
  8. OAuth Session 1.0 (draft) support.

    committed Dec 12, 2010
Commits on May 22, 2010
Commits on Apr 2, 2010
  1. JRuby exception support: see #25.

    JRuby may raise IOError instead of ECONNRESET.  Catch this for
    KeepAliveDisconnected detection.
    committed Apr 2, 2010
Commits on Apr 1, 2010
  1. Test updated.

    Speed-up test process.  Avoid server process spawing in SSL test.
    committed Apr 1, 2010
  2. preparing 2.1.6

    committed Apr 1, 2010