5 Commits

Author SHA1 Message Date
Albert Esteve
0d4f023216 reuse: addheader rest
Add SPDX header for the rest of the
files in the project.

Signed-off-by: Albert Esteve <aesteve@redhat.com>
2022-10-18 13:04:20 +02:00
Albert Esteve
9f8f7cfed3 reuse: addheader README files
Add SPDX header to README files that
have no format, just plain text. The header
in these files will be visible in the project
pages.

Signed-off-by: Albert Esteve <aesteve@redhat.com>
2022-10-18 13:04:20 +02:00
Nir Soffer
ab25b6b93c config: Remove unused daemon:auth_timeout
When we added configurable inactivity timeout, we added also auth
timeout but it was never used. The value was hardcoded to 15 seconds in
2.4.3 and was reverted back to 60 seconds in 2.4.5.

Fixes: d5e9c757e0a4 (http: Configurable inactivity timeout)
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
2022-06-26 16:52:58 +03:00
Nir Soffer
d5e9c757e0 http: Configurable inactivity timeout
We used 60 seconds timeout for disconnecting inactive clients. This is
too long to protect from bad clients leaving open connections, and too
short for applications that need long timeout[1].

Change the default timeout to 15 seconds, configurable via
daemon:auth_timeout. This timeout is used for new unauthorized
connections. If a connection does not authorize within this timeout, it
is disconnected.

When a connection is authorized during the first request, the connection
timeout is increased to ticket.inactivity_timeout. The default value is
60 seconds, configurable via daemon:inactivity_timeout.

Application with special needs can request a larger timeout when
creating an image transfer. Engine need to include the transfer
inactivity timeout in the ticket.

[1] https://bugzilla.redhat.com/2032324

Fixes #14.

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
2021-12-20 21:13:12 +02:00
Nir Soffer
3fc44d98fc pypi: Eliminate the daemon directory
This make it easier to work with the project and to improve packaging.
For example, README.md is now at the expected location, so it is
packaged automatically for pypi.

Change-Id: Ib1a456054de34146bf2a4f39a69ccf1756b99e41
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
2021-10-21 19:39:45 +03:00