You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@guacamole.apache.org by "mike-jumper (via GitHub)" <gi...@apache.org> on 2026/10/13 18:07:29 UTC

[PR] GUACAMOLE-2283: Refactor to minimal threading API, move process namin… [guacamole-server]

mike-jumper opened a new pull request, #723:
URL: https://github.com/apache/guacamole-server/pull/723

   This change:
   
   * Adds a thin thread abstraction, `guac_thread`, that provides named threads.
   * Refactors the process naming out of libguac into private guacd internals.
   * Updates the process naming pattern such that the process listing shows `guacd(vnc)`, `guacd(ssh)`, etc. rather than just `vnc` or `ssh` (which look confusingly like local client applications).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@guacamole.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GUACAMOLE-2283: Refactor to minimal threading API, move process naming to guacd internals. [guacamole-server]

Posted by "necouchman (via GitHub)" <gi...@apache.org>.
necouchman commented on code in PR #723:
URL: https://github.com/apache/guacamole-server/pull/723#discussion_r4276765899


##########
src/protocols/kubernetes/user.c:
##########
@@ -61,8 +62,8 @@ int guac_kubernetes_user_join_handler(guac_user* user, int argc, char** argv) {
         kubernetes_client->settings = settings;
 
         /* Start client thread */
-        if (pthread_create(&(kubernetes_client->client_thread), NULL,
-                    guac_kubernetes_client_thread, (void*) client)) {
+        if (guac_thread_create(&kubernetes_client->client_thread,
+                    guac_kubernetes_client_thread, (void*) client, "k8s-client")) {

Review Comment:
   Thoughts on making these titles constants? We have a long-standing Jira issue for improving the use of constants throughout the code, and the previous implementation of setting thread titles used constants.
   
   I don't feel terribly strongly about it, just want to make sure we're consistent about what should be a constant and what we don't think is worth it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@guacamole.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GUACAMOLE-2283: Refactor to minimal threading API, move process naming to guacd internals. [guacamole-server]

Posted by "mike-jumper (via GitHub)" <gi...@apache.org>.
mike-jumper commented on code in PR #723:
URL: https://github.com/apache/guacamole-server/pull/723#discussion_r4286076102


##########
src/protocols/kubernetes/user.c:
##########
@@ -61,8 +62,8 @@ int guac_kubernetes_user_join_handler(guac_user* user, int argc, char** argv) {
         kubernetes_client->settings = settings;
 
         /* Start client thread */
-        if (pthread_create(&(kubernetes_client->client_thread), NULL,
-                    guac_kubernetes_client_thread, (void*) client)) {
+        if (guac_thread_create(&kubernetes_client->client_thread,
+                    guac_kubernetes_client_thread, (void*) client, "k8s-client")) {

Review Comment:
   I think usage like this is OK, where there's no potential for reuse and the value itself is clear or already symbolic. I'd be more concerned with unclear magic numbers or repeated values.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@guacamole.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GUACAMOLE-2283: Refactor to minimal threading API, move process naming to guacd internals. [guacamole-server]

Posted by "necouchman (via GitHub)" <gi...@apache.org>.
necouchman merged PR #723:
URL: https://github.com/apache/guacamole-server/pull/723


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@guacamole.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org