[CRIU] [PATCH 0/4] add multireq mode to rpc

Ruslan Kuprieiev kupruser at gmail.com
Sun Feb 2 02:55:54 PST 2014


Providing multireq mode allows us to avoid reconnecting to
service socket in request sequences.

Here how it works:
 1. service gets request of MULTIREQ type with logfile set in opts.
 2. service sets logfile for this session and waits for requests on the same socket.
 3. once it got a request, it forks a child and passes this request to it.
    While that request in process, service waits and processes new requests.
 4. if request of MULTIREQ type is received again, service turns off.

Ruslan Kuprieiev (4):
  service: some preparations for multirequest support
  rpc: add multireq and ids
  service: add multireq support
  test: rpc: add multireq test

 cr-service.c                  | 222 ++++++++++++++++++++++++------------------
 protobuf/rpc.proto            |   6 ++
 test/rpc/multireq-pre-dump.py |  67 +++++++++++++
 test/rpc/run.sh               |   3 +
 test/rpc/test.py              |   7 +-
 5 files changed, 207 insertions(+), 98 deletions(-)
 create mode 100755 test/rpc/multireq-pre-dump.py

-- 
1.8.3.2



More information about the CRIU mailing list