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
3
votes
1 answer

Best way to schedule tasks from database using Java (Spring)

I'm looking for frameworks to schedule a set of tasks populated in the Database JPA entities look like this @Entity class Task extends Model { @NotNull @Min(1L) @Column(name = "interval_ms", nullable = false) Integer interval …
alex
  • 79
  • 1
  • 3
  • 6
3
votes
2 answers

Polling not working in React JS mixin

So I created the following mixin: var Polling = { startPolling: function() { var self = this; setTimeout(function() { self.poll(); if (!self.isMounted()) { return; } …
TheWebs
  • 12,470
  • 30
  • 107
  • 211
3
votes
2 answers

Socket.IO stops working on Google Chrome 43.0.2357.65

Please, help me! After update to last version of Google Chrome (43.0.2357.65) on my website socket.io stops working. It sends too many requests and every time create new socket connection. Screenshot Network of Google Developer Tools of my site:…
BONDRV
  • 59
  • 7
3
votes
1 answer

C++ catch if file closed by another program while polling

I have a program that is polling a file for changes. However, if I open another Linux console and delete the file that it is polling, while it is polling, the program will continue to poll forever. Is there a way to catch this? struct pollfd…
user2654735
  • 323
  • 5
  • 19
3
votes
3 answers

C++ Storing variables and inheritance

Here is my situation: I have an event driven system, where all my handlers are derived from IHandler class, and implement an onEvent(const Event &event) method. Now, Event is a base class for all events and contains only the enumerated event type.…
3
votes
1 answer

Polling versus socket servers for online Flash games

I want to make an online flash game, it will have social features but the gameplay will be primarily single-player. For example, no two players will appear on the screen at once, the social interaction will be through asynchronous messages, there…
justin
  • 31
  • 2
3
votes
1 answer

Polling mechanism in Perl

I have written a Perl script which executes a task as per the schedule. Sometimes the task runs for 3 hours, and sometimes for 9 hours. The status of the task changes to COMPLETE after the task is done. We have an internal CLI command which displays…
user3587025
  • 173
  • 1
  • 4
  • 17
3
votes
4 answers

Alternatives for polling?

I have an asp.net c# desktop application which constantly polls for the database data every 5 minutes. This results in lots of load on the server, which in turn reduces its efficiency. is there any technology in asp.net that supports publish…
3
votes
2 answers

Can't read more than one word from named pipe, using poll

I am simulating having two writers and one reader, based on this answer. So, I create two pipes and I write one actual string to every pipe and one string which notifies the reader that he is done with this writer. However, it will only read the…
gsamaras
  • 71,951
  • 46
  • 188
  • 305
3
votes
3 answers

Repeating timerfd event works with epoll and not with poll

I am implementing a timer using timerfd. This is a relative timer that I just need to repeat forever at the rate it is set to. I want to poll on this event and originally tried using poll. When I did this, I would see the timer event the first time…
budhe888
  • 31
  • 1
  • 3
3
votes
1 answer

Efficient polling of a website in the background? (Firefox Addon SDK)

Reading up on the SDK documentations... I found these: Option 1: Request The request API . I get a HTML string as a response. However to parse the HTML and extract the relevant table data that I need, I would have to create a DOM element somewhere.…
3
votes
1 answer

How do I optimize database polling

There is legacy solution where 2 applications communicate with each other via SQL Server 2008 R2 database table. Application "A" inserts information to database table from time to time Application "B" polls database once per second to find out new…
user149691
  • 587
  • 1
  • 5
  • 19
3
votes
3 answers

Checking for EOF when using read() function

This is my first time working with reading from file descriptors and I've been testing through trial and error for about 3 hours now, and I almost have my reader working! I just need a little bit of help on checking for EOF on a named pipe. Ok so…
David Baez
  • 1,208
  • 1
  • 14
  • 26
3
votes
1 answer

Design of asynchronous socket classes in C#

I've done an small asynchronous tcp server/client in C#... ... And I've been just thinking : C# API implements select and epoll, a classic but easy way to do async. Why does Microsoft introduce the BeginConnect/BeginSend family, which -in my…
Stef
  • 3,691
  • 6
  • 43
  • 58
3
votes
3 answers

Poll the Server with Ajax and Dojo

I'm using dojo.xhrPost to sent Ajax Requests The call is wrapped by a function sendRequest() I've now to continuously (every 3sec) send the same ajax Post to the server How can I implement a Server Poll with Dojo? I basically need to call…
mickthompson
  • 389
  • 1
  • 4
  • 12