Skip to content
Commits on May 9, 2015
Commits on Apr 26, 2015
  1. Merge pull request #13 from onnokort/master

    committed Apr 26, 2015
    JSONRPC 2.0 sends either 'result' or 'error'. Test for both.
Commits on Apr 24, 2015
  1. @onnokort
Commits on Mar 20, 2015
  1. @inniyah @gestiweb

    Added support for serial connections

    inniyah committed with gestiweb Mar 19, 2015
    Signed-off-by: David Martinez Marti <desarrollo@gestiweb.com>
Commits on Jan 26, 2015
  1. Merge pull request #12 from steeve/patch-1

    committed Jan 26, 2015
    Clean the circular reference between Connection and BaseHandler
Commits on Jan 23, 2015
  1. @steeve

    Clean the circular reference between Connection and BaseHandler

    steeve committed Jan 24, 2015
    This circular reference prevents Connection objects from being properly freed, creating a leak. This fixes it.
    
    Also, BaseHandler.close() is never called, so the call is made in BaseHandler._shutdown(), which is called by Connection
Commits on Sep 28, 2014
  1. Merge pull request #11 from nelisky/http

    committed Sep 28, 2014
    Basic support for rpc over HTTP.
Commits on Sep 27, 2014
  1. @nelisky

    Basic support for rpc over HTTP.

    nelisky committed Sep 27, 2014
    An extra 'http' flag is allowed on createserver which signals that the server accepts HTTP data over its socket instead of raw json lines, which is useful to allow, for example, javascript functions to POST calls.
    There is no real HTTP layer error checking, which should be added.
    The client side hasn't been changed to support HTTP.
Commits on Jul 21, 2014
  1. Merge pull request #10 from shawnliang/master

    committed Jul 21, 2014
    correct debug message
Commits on Jul 9, 2014
  1. @shawnliang

    correct debug message

    shawnliang committed Jul 9, 2014
Commits on May 9, 2014
  1. Merge pull request #9 from steeve/patch-1

    committed May 9, 2014
    Don't respond if request id is None or absent
Commits on May 8, 2014
  1. @steeve

    Don't respond if request id is None or absent

    steeve committed May 8, 2014
    Requests with id (notifications) are valid, also, 0 is a valid request id. Check for that.
Commits on Jul 25, 2013
  1. @gestiweb

    Merge pull request #8 from ProgVal/python3-examples

    gestiweb committed Jul 25, 2013
    Fix Python 3 compatibility of examples.
  2. @ProgVal
Commits on Apr 18, 2013
  1. Merge pull request #6 from abarnert/ewouldblock

    committed Apr 18, 2013
    Check for EWOULDBLOCK as well as EAGAIN.
  2. @abarnert

    Check for EWOULDBLOCK as well as EAGAIN.

    abarnert committed Apr 18, 2013
    - POSIX allows recv to return either EAGAIN or EWOULDBLOCK, and
      allows them to be the same value. On nearly every modern POSIX
      system, it returns EAGAIN, and they are the same value. But
      Winsock returns EWOULDBLOCK, and defines them as different
      values. So, we need to check both, not just EAGAIN.
Commits on Jan 16, 2013
  1. @gestiweb

    bugfix: Correctly raise EofError when the connection was unexpectedly…

    gestiweb committed Jan 16, 2013
    … closed (happens on Windows)
Commits on Oct 31, 2012
  1. Merge pull request #4 from abarnert/py3k

    committed Oct 31, 2012
    Port from python 2.5-2.7 to 2.6-2.7/3.2+.
  2. @abarnert

    Port from python 2.5-2.7 to 2.6-2.7/3.2+.

    abarnert committed Oct 31, 2012
    - Besides the trivial syntax changes, this required changing the
      Connection.write_line loop to keep _wbuffer as a flat bytes string
      instead of a list of strings. (Since it was already flattening each
      string and then exploding it into a list of 1-char strings, there's
      no performance downside to thsi change.)
    
    - As a side-effect of the changes, Connection.write and friends can
      now handle either bytes or unicode strings. Since the high-level
      methods are all in terms of JSON objects, this only really makes a
      difference for debugging bjsonrpc itself. (The json module will
      only give us str objects--bytes on 2.x, unicode on 3.x--and any
      non-ASCII characters will already be escaped for JSON anyway.)
Commits on Sep 3, 2012
  1. @gestiweb

    Merge pull request #3 from abarnert/socket

    gestiweb committed Sep 2, 2012
    Add Server.socket property.
Commits on Aug 14, 2012
  1. @abarnert

    Add Server.socket property.

    abarnert committed Aug 14, 2012
    - Connection already has a similar property.
    
    - This is useful for binding a service to port 0 and then finding out
      what port it actually got.
  2. @abarnert

    Add Server.socket property.

    abarnert committed Aug 14, 2012
    - Connection already has a similar property.
    
    - This is useful for binding a service to port 0 and then finding out
      what port it actually got.
  3. @abarnert
  4. @abarnert
Commits on Mar 21, 2012
  1. Use standard logging module instead of print statements

    committed Mar 21, 2012
    ... allowing the logs to be redirected when running an application as a daemon.
    
    Thanks to hashstat in github.
Commits on Jun 7, 2011
  1. Release 0.2.1

    committed Jun 7, 2011
Commits on Jun 6, 2011
  1. Documentation updated

    committed Jun 6, 2011
Commits on Jun 4, 2011
  1. Documentation updated.

    committed Jun 4, 2011
Commits on Jun 3, 2011
Commits on May 23, 2011
Commits on May 15, 2011
  1. typo corrected.

    committed May 15, 2011
Commits on May 13, 2011
  1. @gestiweb
Commits on Apr 30, 2011
  1. Requests learned "hasresponse" to check asyncronously whether the res…

    committed Apr 30, 2011
    …ponse has arrived or not. Also added a __call__ method to get the value.
Something went wrong with that request. Please try again.