Permalink
Commits on Mar 16, 2017
  1. Merge pull request #160 from samkillin/master

    Expose pool_size on CLI
    bombela committed on GitHub Mar 16, 2017
Commits on Mar 15, 2017
  1. Expose pool_size on CLI

    samkillin committed Mar 15, 2017
Commits on Jan 31, 2017
  1. gevent 1.1.* for python 2.6

    bombela committed Jan 31, 2017
Commits on Sep 20, 2016
  1. Update README.rst

    bombela committed on GitHub Sep 20, 2016
Commits on Sep 4, 2016
  1. Bump version to 0.6.0.

    bombela committed Sep 4, 2016
  2. Merge branch 'python3.4'

    bombela committed Sep 4, 2016
  3. Merge pull request #148 from poke1024/python3.4

    fixes encoding problem
    bombela committed on GitHub Sep 4, 2016
  4. Do not run flake8 on travis for python2.6.

    flake8 doesn't support python2.6 anymore.
    bombela committed Sep 4, 2016
  5. Explicit imports to please flake8

    Let's be honest, its also cleaner.
    bombela committed Sep 4, 2016
  6. Merge pull request #144 from nick-allen/master

    Fix reference to root logger instead of namespaced logger
    bombela committed on GitHub Sep 4, 2016
Commits on Sep 1, 2016
  1. adding a special case for Python3

    Bernhard Liebl committed Sep 1, 2016
  2. trying yet another execfile alternative

    Bernhard Liebl committed Sep 1, 2016
Commits on Aug 31, 2016
  1. make open() with encoding work under Python2

    Bernhard Liebl committed Aug 31, 2016
  2. fixes encoding problem

    Bernhard Liebl committed Aug 31, 2016
Commits on Jun 4, 2016
  1. Finally correctly handling msgpack bin vs string.

    A long time ago msgpack had a single RAW type for bytes string. It was
    the application responsibility to use any compatible string encoding
    across languages/runtimes.
    
    At some point msgpack was updated with a distinction between BIN type
    and STRING type. The STRING type is the RAW type renamed, and should
    only contain and UTF-8 encoded string. The BIN type is to contain any
    byte strings encoded at the application's responsibility. Because
    STRING is the RAW type renamed, when reading a msgpack message written
    an older version of msgpack, it is impossible to know if the string was
    supposed to be encoded in UTF-8 or not.
    
    So msgpack-python for backward compatibility, reads both RAW and BIN by
    as bytes strings by default. On the write side bytes strings and unicode
    strings encoded to UTF-8 are sent as STRING (and it will appear as UTF-8
    string on nodejs for example).
    
    And btw Python2 strings are somewhat loosely defined ASCII strings
    (which is a subset of UTF-8) so everything was all fine, in/out of
    zerorpc-python was UTF-8 strings.
    
    But one day, somebody wanted zerorpc-python to handle the distinction
    between unicode strings and bytes strings. This was the day commit
    6ca6fdf was born.
    
    This broke the compatibility with zerorpc-node because suddenly,
    zerorpc-python on python2 (remember, strings on python2 are bytes
    strings) was sending BIN (bytes strings) instead of STRING (utf-8
    strings) that zerorpc-node expects.
    
    On the other hand, zerorpc-python on python3 was sending STRING as it
    should, because in python3, strings are unicode by default and
    msgpack-python will encode them as UTF-8 strings with the type STRING.
    
    In an attempt of making zerorpc-python working across python2 &
    python3, I did the wrong thing and used Python2 as reference instead of
    using Python3, which further broke compatibility with zerorpc-node.
    
    This commit restores compatibility with zerorpc-node and across
    python3/python3.
    
    Fixes #142.
    Updates #108.
    
    Note also this new repo 0rpc/zerorpc-crosstests to run basic zerorpc
    tests across languages. I hope it will prevent this kind of bugs to be
    published ever again.
    bombela committed Jun 4, 2016
  2. Ignore GreenletExit exceptions in Events.close().

    During a gc pass, children greenlets might have exited already.
    bombela committed May 28, 2016
  3. New default time factor is 0.2

    bombela committed May 28, 2016
  4. Tox config updated.

    bombela committed May 28, 2016
  5. Add python 3.5 to travis.

    Also reduce the test matrix on PYZMQ.
    bombela committed Mar 21, 2016
  6. Proper handling of bytes vs str (unicode).

    Something to be careful about as zerorpc is now writtent in python3:
     - str() must be an unicode string (using builtins.str ensure that on
       python 2).
     - bytes() must be a string of bytes (we must use builtins.bytes to get
       the same behavior on pythong 2).
     - b"some bytes" is a string of bytes.
     - u"some unicode" is a string of unicodes.
    
    And notably "a string" is a byte string on python 2, but an unicode
    string on python 3. This means zerorpc between a service and a client
    using different version of python requires proper testing.
    bombela committed Mar 21, 2016
  7. Conversion to >=Python3.4

    Code is now using the python 3 syntax , but thanks to "future" and
    "builtins", it is compatible with 2.6 and 2.7.
    
    Hopefully everything was done carefully enough to not impair
    performances on python 2.
    
    Note: Code is not functional and tests are not passing yet. A throughout
    review of str, bytes and unicode strings is still necessary.
    bombela committed Feb 29, 2016
  8. Python3 dependencies

    bombela committed Feb 29, 2016
Commits on May 31, 2016
Commits on Mar 21, 2016
  1. Update README.rst

    bombela committed Mar 21, 2016
  2. Keepy flake8 happy.

    bombela committed Mar 21, 2016
  3. Few tags for pypi.

    bombela committed Mar 20, 2016
  4. Flake8 configuration in tox.ini

    Flake8 will read the config from tox.ini by itself.
    bombela committed Mar 20, 2016
  5. Merge pull request #139 from pigmej/pigmej-patch-1

    Added TypeError to events.Events __del__
    bombela committed Mar 21, 2016
  6. Merge pull request #140 from faith0811/disconnect

    Add disconnct method for zrpc socket
    bombela committed Mar 21, 2016
  7. Update README.rst

    bombela committed Mar 21, 2016
Commits on Mar 3, 2016
Commits on Feb 24, 2016
  1. Added TypeError to events.Events __del__

    On interpreter shutdown you may hit TypeError("'NoneType' object is not callable",)
    pigmej committed Feb 24, 2016
Commits on Nov 24, 2015
  1. Merge branch 'safe-on-close-if' of git://github.com/danielrowles-wf/z…

    …erorpc-python into danielrowles-wf-safe-on-close-if
    bombela committed Nov 24, 2015