Branch: refs/heads/main Home: https://github.com/gssapi/gssproxy Commit: db71ef93d714163beefcb1a28046188a6642cb6c https://github.com/gssapi/gssproxy/commit/db71ef93d714163beefcb1a28046188a66... Author: Simo Sorce simo@redhat.com Date: 2022-05-26 (Thu, 26 May 2022)
Changed paths: M src/gp_init.c M src/gp_proxy.h M src/gssproxy.c
Log Message: ----------- Revert break_loop changes
The event loop cycles too often to use verto_run_once() as a way to deal with marking activity. So revert to using verto_run() and set the termination handler once for now.
Signed-off-by: Simo Sorce simo@redhat.com
Commit: 7d771bd6dd8bef4b7b5f4b4f29c9a8834ec49b25 https://github.com/gssapi/gssproxy/commit/7d771bd6dd8bef4b7b5f4b4f29c9a8834e... Author: Simo Sorce simo@redhat.com Date: 2022-05-26 (Thu, 26 May 2022)
Changed paths: M src/gp_init.c M src/gp_proxy.h M src/gssproxy.c
Log Message: ----------- Move initialization functions into gp_init
Refactor init functions and move them in the appropriate file.
Signed-off-by: Simo Sorce simo@redhat.com
Commit: f48f8c6b92bdbbc2ea7ce8b8d9050e2a2195579e https://github.com/gssapi/gssproxy/commit/f48f8c6b92bdbbc2ea7ce8b8d9050e2a21... Author: Simo Sorce simo@redhat.com Date: 2022-05-26 (Thu, 26 May 2022)
Changed paths: M Makefile.am M src/gp_init.c A src/gp_mgmt.c M src/gp_proxy.h M src/gssproxy.c
Log Message: ----------- Move runtime management function to gp_mgmt.c
These are functions that are used to manage the proxy own main process after initialization. Store in their own file so the scope is clear.
Signed-off-by: Simo Sorce simo@redhat.com
Commit: 0400a19aefe6d19d4d187bc6f3038591e5bde77e https://github.com/gssapi/gssproxy/commit/0400a19aefe6d19d4d187bc6f3038591e5... Author: Simo Sorce simo@redhat.com Date: 2022-05-26 (Thu, 26 May 2022)
Changed paths: M src/gp_debug.h M src/gp_mgmt.c M src/gp_proxy.h M src/gp_socket.c
Log Message: ----------- Fix self termination and add some accounting
Self termination need to happen only when gssproxy is idle for a certina amount of time.
However due to non material activity the gssproxy performs through the verto event handler we need to actively measure ideling rather than depend on things like verto_idle.
Ad an accounting function to our socket handler. This now allows us to collect some interesting statistics as well as reset the idle handler when there is actual activity ongoing.
We reset the handler only upon receiving data from a client, as that indicates a requested activity. Writes happen only as reposnses and are considered part of a single activity event together with the read that caused the idel handler reset.
Signed-off-by: Simo Sorce simo@redhat.com
Commit: a3d215e24237778681965eacaa42a596cd3842df https://github.com/gssapi/gssproxy/commit/a3d215e24237778681965eacaa42a596cd... Author: Simo Sorce simo@redhat.com Date: 2022-05-26 (Thu, 26 May 2022)
Changed paths: M tests/userproxytest.c
Log Message: ----------- Extend userproxy test to check outputs
Currently just checks that initialization and self termination actually happened.
Signed-off-by: Simo Sorce simo@redhat.com
Compare: https://github.com/gssapi/gssproxy/compare/c8b9107288f9...a3d215e24237
gss-proxy@lists.fedorahosted.org