i use on my one personaly project simple queue implemented by msg function. This a specific function msg_receive which is used to wait for a message to come to the queue. Once in a while, this wait crashes with a return error code 43 without an error text.
I can cause this error number 43. If I run two processes, you can see on github. This is expected, but if i run by supervisor i get same error.
I created simple script on github, which is executed by supervisor and process waiting for receive message, it sometomes happen the function return error code 43. Is there anything what clean resources?
I have no idea what causes this, but what did I try?
I checked that the supervisor runs only one php process and the PID is still the same. I tested it on arm raspbian 32 bit (php 7.3.19) and ubuntu 64 bit (php 7.4.9), both are same.
Thank you for help.
I hope the behavior is well described.
-
You don't forget to use method ftok() for first parameter msg_get_queue($key)!h4kuna– h4kuna2023年08月06日 13:39:07 +00:00Commented Aug 6, 2023 at 13:39
-
Let's use this library: github.com/h4kuna/queueh4kuna– h4kuna2023年08月11日 13:16:57 +00:00Commented Aug 11, 2023 at 13:16