src/drm-lease-manager.git
3 years agolease-server: Allow multiple client connections 10/26210/3
Damian Hobson-Garcia [Tue, 9 Mar 2021 03:05:29 +0000 (12:05 +0900)]
lease-server: Allow multiple client connections

Allow multiple clients to issue lease requests
on a server at the same time. This is
necessary to be able to grant or deny leases,
not just on a first-come-first-served basis.

Future patches will add extra contitions,
such as command-line options and lease configuration
settings to determine when and how lease requests should
be granted.

This update changes the behaviour of the lease-server interface
so that it reports every client connection request, instead of
when a server has accepted a request, so update the test suite to
reflect this.

Bug-AGL: SPEC-3816

Change-Id: I48cc392dd62a8c06ea74178bc52c627032817203
Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
3 years agolease-server-test: Destroy server on shutdown 09/26209/1
Damian Hobson-Garcia [Tue, 9 Mar 2021 04:25:41 +0000 (13:25 +0900)]
lease-server-test: Destroy server on shutdown

libcheck tests normally run each test in a separate process
so the server objects will automatically be destroyed after
each test.  If the test suite is run with CK_FORK=no, for
example when debugging the test with gdb, failing to
destory the server object will leave the test sockets
from the previous test open, which will stop the next
test from creating its own sockets.

Bug-AGL: SPEC-3816

Change-Id: I42a0976c392bdc19bb60acc78178aac8ee3e14ce
Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
3 years agoAdd initial version 81/26081/2
Damian Hobson-Garcia [Tue, 24 Nov 2020 08:16:39 +0000 (17:16 +0900)]
Add initial version

The initial version implements the basic functionality
of the client/server communication and lease management.

For now, one lease is created per valid connector (dependent
on CRTC availablity).

Bug-AGL: SPEC-3729

Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
Change-Id: I2b37a892742cc22bdc53a5172c8ad3d8a7bb5e66

3 years agoInitial empty repository 10.0.1 10.0.2 10.91.0 10.92.0 10.93.0 10.93.1 11.0.0 11.0.4 jellyfish/10.0.1 jellyfish/10.0.2 jellyfish_10.0.1 jellyfish_10.0.2 koi/10.91.0 koi/10.92.0 koi/10.93.0 koi/10.93.1 koi/11.0.0 koi/11.0.4 koi_10.91.0 koi_10.92.0 koi_10.93.0 koi_10.93.1 koi_11.0.0 koi_11.0.4
Jan-Simon Moeller [Fri, 4 Dec 2020 01:24:58 +0000 (01:24 +0000)]
Initial empty repository