)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"be60f1e5ab5c6a7dd546028c97206fa7b882d6c0","unresolved":true,"context_lines":[{"line_number":15,"context_line":"--dns-script up/down when asked to. The parent openvpn process signals"},{"line_number":16,"context_line":"this by writing to a pipe the runner is waiting on."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Scripts need to ready to receive variables from a file instead of the"},{"line_number":19,"context_line":"process environment. A shameless and effective workaround to keep the"},{"line_number":20,"context_line":"protocol between the two processes simple."},{"line_number":21,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"b4ed22e0_13a57781","line":18,"range":{"start_line":18,"start_character":15,"end_line":18,"end_character":16},"updated":"2024-12-27 17:07:46.000000000","message":"\"need to be ready\"","commit_id":"059bab5e0dc3f8d3746e4e54e90b0506c94a9ee6"},{"author":{"_account_id":1000006,"name":"Heiko Hund","display_name":"Heiko Hund","email":"heiko@ist.eigentlich.net","username":"d12fk"},"change_message_id":"796fd3d342f37250778441541b9d07a5a4e07306","unresolved":false,"context_lines":[{"line_number":15,"context_line":"--dns-script up/down when asked to. The parent openvpn process signals"},{"line_number":16,"context_line":"this by writing to a pipe the runner is waiting on."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Scripts need to ready to receive variables from a file instead of the"},{"line_number":19,"context_line":"process environment. A shameless and effective workaround to keep the"},{"line_number":20,"context_line":"protocol between the two processes simple."},{"line_number":21,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"f22a9aa2_82b332c1","line":18,"range":{"start_line":18,"start_character":15,"end_line":18,"end_character":16},"in_reply_to":"b4ed22e0_13a57781","updated":"2024-12-31 00:34:11.000000000","message":"Acknowledged","commit_id":"059bab5e0dc3f8d3746e4e54e90b0506c94a9ee6"}],"/PATCHSET_LEVEL":[{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"0a83e83bae97d61a608774be0d0c25499d9aeb8c","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":8,"id":"4ba1c487_41dd9924","updated":"2025-03-03 16:49:11.000000000","message":"Seems to work fine in my tests on Linux","commit_id":"4ee0c7b626d51d08b2a35a33d7685bc2bcf6895d"},{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"010de2adeb8ad2f95447b05f157623f403e30229","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":9,"id":"d84d69e7_0fb72375","updated":"2025-03-05 09:32:36.000000000","message":"I didn\u0027t do an in-depth review, but the EINTR thing I noticed is fixed.","commit_id":"51af5da03ee58d272192bf8dc36a59b8ee96faaf"},{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"7a7987e127ad92e5848b01fe91fa9a39ab98d812","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":10,"id":"6437a8bf_ed1f82f7","updated":"2025-03-06 13:09:42.000000000","message":"Doesn\u0027t seem to work right now. Script runner is never used.","commit_id":"c768008be31034c0bc84da99bee6f21c48be3b31"},{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"055b412af95ef659c383ec00edd8442576aaaf4e","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":10,"id":"c768a849_c4165803","updated":"2025-03-06 12:54:53.000000000","message":"still testing","commit_id":"c768008be31034c0bc84da99bee6f21c48be3b31"},{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"6bc4af9d7778e6c797a73455c326a40eba703b50","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":12,"id":"36020212_471bddda","updated":"2025-03-07 10:27:13.000000000","message":"fixed","commit_id":"d4bfb82c45b18007ae665b6632f4905ebb3fbaab"}],"src/openvpn/dns.c":[{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"be60f1e5ab5c6a7dd546028c97206fa7b882d6c0","unresolved":true,"context_lines":[{"line_number":570,"context_line":"    script_runner-\u003epid \u003d fork();"},{"line_number":571,"context_line":"    if (script_runner-\u003epid \u003d\u003d -1)"},{"line_number":572,"context_line":"    {"},{"line_number":573,"context_line":"        msg(M_ERR, \"run_dns_up_down: unable to fork\");"},{"line_number":574,"context_line":"        close(dns_pipe_fd[0]);"},{"line_number":575,"context_line":"        close(dns_pipe_fd[1]);"},{"line_number":576,"context_line":"        close(ack_pipe_fd[0]);"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"800806d7_0538dae0","line":573,"updated":"2024-12-27 17:07:46.000000000","message":"Should use errno?","commit_id":"059bab5e0dc3f8d3746e4e54e90b0506c94a9ee6"},{"author":{"_account_id":1000006,"name":"Heiko Hund","display_name":"Heiko Hund","email":"heiko@ist.eigentlich.net","username":"d12fk"},"change_message_id":"796fd3d342f37250778441541b9d07a5a4e07306","unresolved":false,"context_lines":[{"line_number":570,"context_line":"    script_runner-\u003epid \u003d fork();"},{"line_number":571,"context_line":"    if (script_runner-\u003epid \u003d\u003d -1)"},{"line_number":572,"context_line":"    {"},{"line_number":573,"context_line":"        msg(M_ERR, \"run_dns_up_down: unable to fork\");"},{"line_number":574,"context_line":"        close(dns_pipe_fd[0]);"},{"line_number":575,"context_line":"        close(dns_pipe_fd[1]);"},{"line_number":576,"context_line":"        close(ack_pipe_fd[0]);"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"63f8b336_269dee2d","line":573,"in_reply_to":"800806d7_0538dae0","updated":"2024-12-31 00:34:11.000000000","message":"Acknowledged","commit_id":"059bab5e0dc3f8d3746e4e54e90b0506c94a9ee6"},{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"2e8fb13466f2a703f66e7a6b4b5104eb269349e3","unresolved":true,"context_lines":[{"line_number":706,"context_line":""},{"line_number":707,"context_line":"        while (1)"},{"line_number":708,"context_line":"        {"},{"line_number":709,"context_line":"            ssize_t len \u003d read(rfd, \u0026status, sizeof(status));"},{"line_number":710,"context_line":"            if (len \u003c sizeof(status))"},{"line_number":711,"context_line":"            {"},{"line_number":712,"context_line":"                if (len \u003d\u003d -1 \u0026\u0026 errno \u003d\u003d EINTR)"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"fa5e5bc1_2b2282cf","line":709,"updated":"2025-01-17 13:53:32.000000000","message":"Do we need some kind of timeout handling here?","commit_id":"5442e54c4394aebe1ac44d9a7326ed4a8401f507"},{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"0a83e83bae97d61a608774be0d0c25499d9aeb8c","unresolved":true,"context_lines":[{"line_number":706,"context_line":""},{"line_number":707,"context_line":"        while (1)"},{"line_number":708,"context_line":"        {"},{"line_number":709,"context_line":"            ssize_t len \u003d read(rfd, \u0026status, sizeof(status));"},{"line_number":710,"context_line":"            if (len \u003c sizeof(status))"},{"line_number":711,"context_line":"            {"},{"line_number":712,"context_line":"                if (len \u003d\u003d -1 \u0026\u0026 errno \u003d\u003d EINTR)"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"c8898136_2f4ffd91","line":709,"in_reply_to":"032ef1df_3b6026f8","updated":"2025-03-03 16:49:11.000000000","message":"Fair enough.","commit_id":"5442e54c4394aebe1ac44d9a7326ed4a8401f507"},{"author":{"_account_id":1000006,"name":"Heiko Hund","display_name":"Heiko Hund","email":"heiko@ist.eigentlich.net","username":"d12fk"},"change_message_id":"2637abf8260c7bb77dad262251195d61aa840f5d","unresolved":true,"context_lines":[{"line_number":706,"context_line":""},{"line_number":707,"context_line":"        while (1)"},{"line_number":708,"context_line":"        {"},{"line_number":709,"context_line":"            ssize_t len \u003d read(rfd, \u0026status, sizeof(status));"},{"line_number":710,"context_line":"            if (len \u003c sizeof(status))"},{"line_number":711,"context_line":"            {"},{"line_number":712,"context_line":"                if (len \u003d\u003d -1 \u0026\u0026 errno \u003d\u003d EINTR)"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"032ef1df_3b6026f8","line":709,"in_reply_to":"6e128420_528a4795","updated":"2025-02-27 00:29:50.000000000","message":"So, after careful consideration I think it is doable to add a timeout mechanism to script calls, but I think if we decide to do that it should be done for all script hooks. Currently it is not done, and if a script hangs indefinitely openvpn is block indefinitely. I think accepting that is also a valid outcome, so we need to decide as a group which way to go.","commit_id":"5442e54c4394aebe1ac44d9a7326ed4a8401f507"},{"author":{"_account_id":1000006,"name":"Heiko Hund","display_name":"Heiko Hund","email":"heiko@ist.eigentlich.net","username":"d12fk"},"change_message_id":"38c30160ff9dcc5877fdd1e9611f266ea187a5aa","unresolved":false,"context_lines":[{"line_number":706,"context_line":""},{"line_number":707,"context_line":"        while (1)"},{"line_number":708,"context_line":"        {"},{"line_number":709,"context_line":"            ssize_t len \u003d read(rfd, \u0026status, sizeof(status));"},{"line_number":710,"context_line":"            if (len \u003c sizeof(status))"},{"line_number":711,"context_line":"            {"},{"line_number":712,"context_line":"                if (len \u003d\u003d -1 \u0026\u0026 errno \u003d\u003d EINTR)"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"2d0641f5_c24f8b1d","line":709,"in_reply_to":"c8898136_2f4ffd91","updated":"2025-03-05 03:34:57.000000000","message":"Done","commit_id":"5442e54c4394aebe1ac44d9a7326ed4a8401f507"},{"author":{"_account_id":1000006,"name":"Heiko Hund","display_name":"Heiko Hund","email":"heiko@ist.eigentlich.net","username":"d12fk"},"change_message_id":"2c8c03a7678c71688670378b18e0a104b66cc408","unresolved":true,"context_lines":[{"line_number":706,"context_line":""},{"line_number":707,"context_line":"        while (1)"},{"line_number":708,"context_line":"        {"},{"line_number":709,"context_line":"            ssize_t len \u003d read(rfd, \u0026status, sizeof(status));"},{"line_number":710,"context_line":"            if (len \u003c sizeof(status))"},{"line_number":711,"context_line":"            {"},{"line_number":712,"context_line":"                if (len \u003d\u003d -1 \u0026\u0026 errno \u003d\u003d EINTR)"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"6e128420_528a4795","line":709,"in_reply_to":"fa5e5bc1_2b2282cf","updated":"2025-01-20 19:19:40.000000000","message":"Hm, that\u0027s a good thought. I\u0027d rather implement the timeout in the script runner process, since the only source for an indefinite \"hang\" is the script itself. By handling this in the runner, we could also make sure that it is ready for the next request, i.e. unblocked. If we just implement the timeout here next time we need to run the script it will timeout again otherwise.","commit_id":"5442e54c4394aebe1ac44d9a7326ed4a8401f507"},{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"4e3049543772718a343219beb52a97c36719e964","unresolved":true,"context_lines":[{"line_number":622,"context_line":"            rlen \u003d read(dns_pipe_fd[0], \u0026path, sizeof(path));"},{"line_number":623,"context_line":"            if (rlen \u003c 1)"},{"line_number":624,"context_line":"            {"},{"line_number":625,"context_line":"                if (rlen \u003d\u003d -1 \u0026\u0026 errno !\u003d EINTR)"},{"line_number":626,"context_line":"                {"},{"line_number":627,"context_line":"                    continue;"},{"line_number":628,"context_line":"                }"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"633578a0_e70336df","line":625,"updated":"2025-03-04 17:46:07.000000000","message":"Isn\u0027t this the wrong way around? If the error is EINTR, we want to continue, if it\u0027s a real error we want to exit?","commit_id":"4ee0c7b626d51d08b2a35a33d7685bc2bcf6895d"},{"author":{"_account_id":1000006,"name":"Heiko Hund","display_name":"Heiko Hund","email":"heiko@ist.eigentlich.net","username":"d12fk"},"change_message_id":"7878b188b8d617a05538e541d3c662a70886328f","unresolved":false,"context_lines":[{"line_number":622,"context_line":"            rlen \u003d read(dns_pipe_fd[0], \u0026path, sizeof(path));"},{"line_number":623,"context_line":"            if (rlen \u003c 1)"},{"line_number":624,"context_line":"            {"},{"line_number":625,"context_line":"                if (rlen \u003d\u003d -1 \u0026\u0026 errno !\u003d EINTR)"},{"line_number":626,"context_line":"                {"},{"line_number":627,"context_line":"                    continue;"},{"line_number":628,"context_line":"                }"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"5ffe9b89_603f7b8b","line":625,"in_reply_to":"633578a0_e70336df","updated":"2025-03-05 03:34:28.000000000","message":"You are right, good catch.","commit_id":"4ee0c7b626d51d08b2a35a33d7685bc2bcf6895d"}],"src/openvpn/init.c":[{"author":{"_account_id":1000002,"name":"Gert Doering","display_name":"Gert Doering","email":"gert@greenie.muc.de","username":"cron2"},"change_message_id":"3d054cf62c7bbac894580c0daa7140bfe074f78c","unresolved":true,"context_lines":[{"line_number":3970,"context_line":""},{"line_number":3971,"context_line":"        /* fork the dns script runner to preserve root? */"},{"line_number":3972,"context_line":"        c-\u003epersist.duri.required \u003d c0-\u003euid_gid_specified;"},{"line_number":3973,"context_line":""},{"line_number":3974,"context_line":"        /* perform postponed chdir if --daemon */"},{"line_number":3975,"context_line":"        if (c-\u003edid_we_daemonize \u0026\u0026 c-\u003eoptions.cd_dir \u003d\u003d NULL)"},{"line_number":3976,"context_line":"        {"}],"source_content_type":"text/x-csrc","patch_set":22,"id":"cb719551_d3fda8ef","line":3973,"updated":"2025-05-02 20:24:03.000000000","message":"this would tie the necessity for the persistent runner to \"user *or* group defined\" - but technically if only the GID is changed (\"no idea why one would *do* that, but we have those options\") the runner isn\u0027t needed... so this could be `\u003d user_defined`.","commit_id":"a88e0db8cbcb4603a2c04e4e2c8c0b98191c1964"},{"author":{"_account_id":1000006,"name":"Heiko Hund","display_name":"Heiko Hund","email":"heiko@ist.eigentlich.net","username":"d12fk"},"change_message_id":"fa64efab37b06cb8a21a7badc699000b10be9828","unresolved":false,"context_lines":[{"line_number":3970,"context_line":""},{"line_number":3971,"context_line":"        /* fork the dns script runner to preserve root? */"},{"line_number":3972,"context_line":"        c-\u003epersist.duri.required \u003d c0-\u003euid_gid_specified;"},{"line_number":3973,"context_line":""},{"line_number":3974,"context_line":"        /* perform postponed chdir if --daemon */"},{"line_number":3975,"context_line":"        if (c-\u003edid_we_daemonize \u0026\u0026 c-\u003eoptions.cd_dir \u003d\u003d NULL)"},{"line_number":3976,"context_line":"        {"}],"source_content_type":"text/x-csrc","patch_set":22,"id":"3fd9ac63_442de512","line":3973,"in_reply_to":"cb719551_d3fda8ef","updated":"2025-05-10 12:36:41.000000000","message":"Done","commit_id":"a88e0db8cbcb4603a2c04e4e2c8c0b98191c1964"}]}
