1. 30 Jul, 2010 2 commits
  2. 29 Jul, 2010 6 commits
  3. 28 Jul, 2010 1 commit
  4. 23 Jul, 2010 1 commit
  5. 16 Jul, 2010 3 commits
  6. 15 Jul, 2010 5 commits
  7. 13 Jul, 2010 2 commits
  8. 12 Jul, 2010 4 commits
  9. 09 Jul, 2010 1 commit
  10. 08 Jul, 2010 1 commit
  11. 07 Jul, 2010 1 commit
  12. 06 Jul, 2010 3 commits
  13. 02 Jul, 2010 1 commit
  14. 01 Jul, 2010 1 commit
    • Michael Hanselmann's avatar
      RAPI client: Switch to pycURL · 2a7c3583
      Michael Hanselmann authored
      
      
      Currently the RAPI client uses the urllib2 and httplib modules from
      Python's standard library. They're used with pyOpenSSL in a very fragile
      way, and there are known issues when receiving large responses from a RAPI
      server.
      
      By switching to PycURL we leverage the power and stability of the
      widely-used curl library (libcurl). This brings us much more flexibility
      than before, and timeouts were easily implemented (something that would
      have involved a lot of work with the built-in modules).
      
      There's one small drawback: Programs using libcurl have to call
      curl_global_init(3) (available as pycurl.global_init) while exactly one
      thread is running (e.g. before other threads) and are supposed to call
      curl_global_cleanup(3) (available as pycurl.global_cleanup) upon exiting.
      See the manpages for details. A decorator is provided to simplify this.
      
      Unittests for the new code are provided, increasing the test coverage of
      the RAPI client from 74% to 89%.
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      2a7c3583
  15. 30 Jun, 2010 6 commits
  16. 29 Jun, 2010 2 commits