[ovirt-devel] GetCaps for jsonrpc

Nir Soffer nsoffer at redhat.com
Sun Jun 8 11:21:46 UTC 2014

----- Original Message -----
> From: "Piotr Kliczewski" <piotr.kliczewski at gmail.com>
> To: devel at ovirt.org
> Sent: Thursday, June 5, 2014 3:35:01 PM
> Subject: [ovirt-devel]  GetCaps for jsonrpc
> Hi all,
> I would like to see whether there are any suggestions how we can
> provide information like:
> - lastClient
> - lastClientIface - network interface on which client connected
> In the code prior to jsonrpc changes every time new request (new
> connection) was received clientIF threadLocal was updated with client
> information.
> This code was implemented in xml binding and now we need to provide
> similar information for jsonrpc. There is difference that we keep
> connection open for jsonrpc so we can't provide behavior as described
> above. We can update client information when connection is
> established.

The xmlrpc server also keeps the connection open, so there is no much
difference here.

If you have one thread per connection, you can set the client address
once when the thread starts.

If you a thread pool, handling requests from all connections, you must
set the client address when staring to serve each request.


More information about the Devel mailing list