----- Original Message ----- > From: "Piotr Kliczewski" <[email protected]> > To: [email protected] > 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. Nir _______________________________________________ Devel mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/devel
