Questions tagged [polling]

Polling is actively sampling the status of an external device by a client program as a synchronous activity.

Polling is actively sampling the status of an external device by a client program as a synchronous activity.

Reference:

1451 questions
4
votes
2 answers

How to session_write_close() in Laravel?

Running session_write_close() before sleep() in Laravel doesn't seem to be functioning as the session is still blocked from other requests until the current connection is complete. I'm trying to sleep() in Laravel without blocking other requests.…
doncadavona
  • 7,162
  • 9
  • 41
  • 54
4
votes
2 answers

Design Pattern for Module that continuously checks if other modules in the system are working?

I am implementing a java project where there are multiple decoupled modules interacting with a shared service (database/web service). There is a health checker module that continuously polls all the modules to see if they are functioning or not. If…
tr_quest
  • 735
  • 2
  • 10
  • 24
4
votes
2 answers

How should I handle reconnections in twisted.application.internet.ClientService?

I am trying to make use of the recently introduced twisted.application.internet.ClientService class in a twisted application that does simple modbus-tcp polling using pymodbus. I feel my issues have nothing to do with the modbus Protocol that I am…
DanSut
  • 474
  • 8
  • 22
4
votes
1 answer

Jquery Ajax calls crashing Internet Explorer?

I must admit, this is my first post on this site, so I apologise in advice if I do something wrong (formatting etc). Anyway, I'm creating a kind of mmo using javascript (and jQuery), and so far everything is running fine in Chrome, Safari, Firefox,…
Sylvan
  • 43
  • 1
  • 3
4
votes
2 answers

file descriptor polling

I have created a following program in which I wish to poll on the file descriptor of the file that I am opening in the program. #define FILE "help" int main() { int ret1; struct pollfd fds[1]; ret1 = open(FILE,…
Arpit
  • 4,259
  • 10
  • 38
  • 43
4
votes
1 answer

Mule FTP polling stops without error or warning

I encountered an issue with the FTP polling of Mule ESB standalone: The application was running for a few days without issues, and then the FTP polling stopped without giving warning or error. Logs were showing signs of activity for the FTP polling…
Pierre B.
  • 11,612
  • 1
  • 37
  • 58
4
votes
2 answers

How to fully implement server-sent events for message polling

I am trying to communicate with a server using an API. to make it easier I wrote a script that will communicate the API using a php script. My goal is to make a query to the API every second to see if there is new message in their queue. I was…
Jaylen
  • 39,043
  • 40
  • 128
  • 221
4
votes
1 answer

Does anyone know of any good open source voting software?

I'm looking for a voting system that we can implement at work amongst our developers. We need something that allows developers to submit ideas about what we can do to improve our development practices (amongst other things) and then have all the…
mezoid
  • 28,090
  • 37
  • 107
  • 148
4
votes
4 answers

Ajax/PHP - should I use one long running script or polling?

I have a PHP script that is kicked off via ajax. This PHP script uses exec() to run a separate PHP script via the shell. The script that is called via exec() may take 30 seconds or so to complete. I need to update the UI once it is finished. Which…
Brian
  • 2,107
  • 6
  • 22
  • 40
4
votes
1 answer

How can I open a nodejs Duplex stream given a file descriptor?

I'm porting an existing program to nodejs. In this program, I open a file descriptor and then hand it off to a thread which calls poll on it in order to determine when it's readable. Instead of writing a custom C++ module, I'd really like to do this…
Ben Burns
  • 14,978
  • 4
  • 35
  • 56
4
votes
2 answers

How to get updates from Asana via API

Right now I'm polling Asana every minute for updates to Tasks via Asana API. Hopefully there's something like Event Triggers we can set to call some URL in our application. I'd love to cut down the load we put on Asana servers and avoid timeouts…
4
votes
0 answers

Objective-c simple polling

I'm new to objective-c and I'm building an app that requires a background polling to a generic API to refresh some data on my user interface. After several hours looking for an answer/example that fits my problem I came across some solutions like…
4
votes
0 answers

Web long polling using parse.com

My problem is that I am building a app using parse (http://parse.com) and also a website to support it but didn't find a solution to add the "instant messaging" feature to web (Like facebook messaging) The app (IOS) has a messaging feature that uses…
doru
  • 86
  • 4
4
votes
2 answers

Updating data in a client application, how to avoid polling?

I have a desktop client application that is talking to a server application through a REST API using simple HTTP posts. I currently have the client polling every X minutes, but I would like the data to be refreshed more frequently. Is it possible to…
Jon Tackabury
  • 47,710
  • 52
  • 130
  • 168