Re: Is there any way to listen to NOTIFY in php without polling?
В списке pgsql-general по дате отправления:
| От | Jasen Betts |
|---|---|
| Тема | Re: Is there any way to listen to NOTIFY in php without polling? |
| Дата | |
| Msg-id | kj2hqt$uhh$1@gonzo.reversiblemaps.ath.cx обсуждение |
| Ответ на | Is there any way to listen to NOTIFY in php without polling? (Clemens Eisserer <linuxhippy@gmail.com>) |
| Ответы |
Re: Is there any way to listen to NOTIFY in php without polling?
|
| Список | pgsql-general |
On 2013-03-27, Misa Simic <misa.simic@gmail.com> wrote: > --20cf3074d6a0c370ce04d8ef50c1 > Content-Type: text/plain; charset=UTF-8 > > Hi Clemens, > > Well, I am not sure what you mean by polling... > > But Example shows - that C app - actually asks all the time to get > notify... when gets something more then 4 times - exit... until 4 times > loops... that's polling. I just do a select() on the socket and the select either times out or lets me know something has come from the server. then I call whatever it is to check for notifies. > The same you can achieve with PHP... except PHP doesn't have select() and hides the socket. -- ⚂⚃ 100% natural
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера