Fix for responding to a first request after socket activation 46/40846/4
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Tue, 9 Jun 2015 15:30:14 +0000 (17:30 +0200)
committerLukasz Pawelczyk <l.pawelczyk@samsung.com>
Wed, 10 Jun 2015 11:31:58 +0000 (13:31 +0200)
commite681d41197e79fcef3007058b3d1b09cd130ef3f
tree26319ae0217594458221cfa78593054f02da3196
parenta952476014d42a26feb4c99f5c48095bcf3d2ce7
Fix for responding to a first request after socket activation

[Bug]           When socket activated the first request might not be
                properly handled because all the callback might not have
                registered yet.
[Cause]         N/A
[Solution]      Delayed handling requests until all the callbacks have
                been registered.
[Verification]  Built, installed, run tests.
Did several tries with triggering socket activation:
                1. systemctl start vasum.service
2. vasum-cli create_zone test
3. systemctl stop vasum.service
                4. vasum-cli get_zone_ids
                5. observe no error and list of zones should show 'test'
                6. goto 3

Change-Id: I6de9742959d32afe68f496246065d3befc823955
server/host-ipc-connection.cpp
server/host-ipc-connection.hpp
server/zones-manager.cpp