1. 04 Jan, 2010 2 commits
  2. 25 Aug, 2009 1 commit
  3. 20 Aug, 2009 1 commit
  4. 07 Jul, 2009 2 commits
  5. 13 Feb, 2009 1 commit
    • Iustin Pop's avatar
      RAPI: format error messages as JSON · 1f8588f6
      Iustin Pop authored
      This patch changes the format of the HTTP error messages from text/html, which
      is hard to parse from RAPI clients, to JSON which can be automatically parsed.
      
      The error message is an object, which contains always three keys:
        - code, an integer with the error code
        - message, a short description
        - explain, holding (if available) a description of the error
      
      In order to implement this, there is a bit of change to the http server
      and executor classes. I've tested and the error handling still works
      (but less optimal, no error message) in case the error formatting itself
      raises an exception.
      
      Reviewed-by: imsnah
      1f8588f6
  6. 15 Jan, 2009 2 commits
    • Iustin Pop's avatar
      Some docstring updates · 25e7b43f
      Iustin Pop authored
      This patch rewraps some comments to shorter lengths, changes
      double-quotes to single-quotes inside triple-quoted docstrings for
      better editor handling.
      
      It also fixes some epydoc errors, namely invalid crossreferences (after
      method rename), documentation for inexistent (removed) parameters, etc.
      
      Reviewed-by: ultrotter
      25e7b43f
    • Iustin Pop's avatar
      ganeti-noded: reduce log noise · 14d57a8b
      Iustin Pop authored
      The source port/addr is currently logged three times for each
      connection, and this is unnecessary. We change two log entries to debug,
      since they are useful for precise timing, and we keep only one at INFO
      level.
      
      Reviewed-by: imsnah
      14d57a8b
  7. 19 Dec, 2008 2 commits
  8. 18 Dec, 2008 3 commits
  9. 17 Dec, 2008 1 commit
  10. 15 Dec, 2008 1 commit
  11. 14 Dec, 2008 1 commit
  12. 12 Dec, 2008 1 commit
  13. 11 Dec, 2008 1 commit
    • Iustin Pop's avatar
      Fix epydoc format warnings · c41eea6e
      Iustin Pop authored
      This patch should fix all outstanding epydoc parsing errors; as such, we
      switch epydoc into verbose mode so that any new errors will be visible.
      
      Reviewed-by: imsnah
      c41eea6e
  14. 10 Dec, 2008 1 commit
  15. 09 Dec, 2008 1 commit
    • Michael Hanselmann's avatar
      ganeti.http.server: Increase connection backlog to 1024 · 59305197
      Michael Hanselmann authored
      This solves a problem with many concurrent requests. By default, 1024
      is the maximum backlog on Linux kernels. We limit the number of clients
      through MAX_CHILDREN, too. The idea of just increasing the backlog is
      taken from lighttpd.
      
      Reviewed-by: amishchenko
      59305197
  16. 04 Dec, 2008 1 commit
    • Michael Hanselmann's avatar
      ganeti.http: Split HTTP server and client into separate files · 02cab3e7
      Michael Hanselmann authored
      This includes a large rewrite of the HTTP server code. The handling of
      OpenSSL errors had some problems that were hard to fix with its
      structure. When preparing all of this, I realized that actually HTTP
      is a message protocol and that the same code can be used on both the
      server and client side to parse requests/responses, with only a few
      differences. There are still a few TODOs in the code, but none should
      be a show stopper. Many pylint warnings have been fixed, too.
      
      The old code will be removed once all users have been migrated.
      
      Reviewed-by: amishchenko
      02cab3e7