Time Out in message queues in PHP
Posted: Thu Jan 13, 2011 1:14 am
Hi Everyone,
I am writing PHP script which will communicate with C program through mesage queue.
In the PHP, i am waiting for the message from C program using the
I want to come out of receiving after say 30 secs if i do not get any message.
msg_receive has one option, MSG_IPC_NOWAIT which will come out immediately if no data is available.
Is there way to stop the msg_receive blocking call after 30 secs if no data is available?
I tried my best to search for it but could not succeed .I am new to PHP programming.
Can you any one help me out?
Thanks a lot for your kind help.
regards
Praveen.
I am writing PHP script which will communicate with C program through mesage queue.
In the PHP, i am waiting for the message from C program using the
function.msg_receive
I want to come out of receiving after say 30 secs if i do not get any message.
msg_receive has one option, MSG_IPC_NOWAIT which will come out immediately if no data is available.
Is there way to stop the msg_receive blocking call after 30 secs if no data is available?
I tried my best to search for it but could not succeed .I am new to PHP programming.
Can you any one help me out?
Thanks a lot for your kind help.
regards
Praveen.