Skip to content

Conversation

@quentinmit
Copy link
Contributor

I added support for UNIX domain sockets to jsonrpclib, for both clients and servers. You can look at the test case I added to see how it works; the client recognizes a URL of the form "unix:/tmp/jsonrpclib.sock", and the server takes an address_family parameter that can be set to AF_UNIX.

UNIX sockets have improved performance and security properties; the latter is why I needed a JSON-RPC implementation over UNIX sockets.

@joshmarshall
Copy link
Owner

Excellent addition. I ran the tests everything seemed fine, so I went ahead and merged. I welcome any additional contributions / ideas / etc!

Zectbumo pushed a commit to Zectbumo/jsonrpclib that referenced this pull request Feb 23, 2014
- Allows to use the 'client("close")()' method to close the
  transport layer of a ServerProxy, even on Python 2.6
  => Fixes joshmarshall#2
- Updated tests to _really_ close the transport layer
  (and not just to retrieve the closing method)
Zectbumo pushed a commit to Zectbumo/jsonrpclib that referenced this pull request Feb 23, 2014
Zectbumo pushed a commit to Zectbumo/jsonrpclib that referenced this pull request Feb 23, 2014
Also added supported Python versions to setup.py
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants