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
2 answers

Actionscript 3: Memory Leak in Server Polling Presentation App

I'm building a remote presentation tool in AS3. In a nutshell, one user (the presenter) has access to a "table of contents" HTML page with links for each slide in the presentation, and an arbitrary number of viewers can watch the presentation on…
justinbach
  • 1,945
  • 26
  • 44
3
votes
1 answer

EF6, Windows Service & Database polling

I have a windows service that is polling a database. I am using EF6 and linq to do my queries and updates, etc. The polling needs to be as often as possible, probably every 2 seconds or something in that area. My gut tells me to have one connection…
Johan
  • 8,068
  • 1
  • 33
  • 46
3
votes
1 answer

Comet vs Ajax for chatting

My site needs a chat room, and I'm also looking to implement a facebookesque person to person chat system. What is most cost-efficient/performant (purely in terms of bw and server) for me. A regular 1 second poll ajax chat, or a comet…
Mark
  • 32,293
  • 33
  • 107
  • 137
3
votes
1 answer

Algorithm to gradually slow down polling requests

I have a requirement to do polling that gradually gets slower over time. Is there a mathematical formula that is common to use in such a scenario? For example I might want to poll 10 seconds after the first try and then gradually get slower to…
Joel Cunningham
  • 13,620
  • 8
  • 43
  • 49
3
votes
1 answer

BizTalk - Receive Port reading twice from DB

My receive port is of sqlBinding and typed polling. It invokes a SP to fetch a record and based on filter condition the corresponding orchestration kicks off. The BizTalk group consists of 2 servers; thus 2 ReceiveHostInstances. If both the host…
Muralidhar
  • 91
  • 3
  • 8
3
votes
2 answers

Linux Serial IO - splitting Tx and Rx between two threads?

I'm having one of those mental-block moments in trying to implement what should be a fairly simple routine, for serial IO. The situation is that we have an embedded linux board (think Pi / Beagle) which communicates with another device on the UART…
John U
  • 2,886
  • 3
  • 27
  • 39
3
votes
1 answer

Web Page update without polling

I'm developing a web app where a user can request a service and a provider will be available to respond to him. So, When a user requests for some sort of service, our application will send a notification to the provider (asking him to respond to the…
nurakantech
  • 502
  • 4
  • 14
3
votes
1 answer

Why does ajax polling increases CPU usage over time?

I have a web application polls the server every 1 second for data to update its display. I see a gradual (over night) increase of CPU usage of the browser from 6% to 30% with no app interaction or change in behavior. The problem is easily reproduced…
Avner
  • 5,791
  • 2
  • 29
  • 33
3
votes
1 answer

In primefaces dataTable Sort and Filter Not Preserved with Poll

I have been trying to get the sorting and filtering preserved while poll updates the table. Unfortunately, I was not able to do that. When dataTable is refreshed every two seconds, or any interval, by poll, the filter value is removed and column,…
z ba
  • 31
  • 3
3
votes
1 answer

Is it possible in wxwidgets to determine if the window is currently visible?

In my wxWidgets (wxPython) app, I am using a 50 ms timer to do some polling and update a window if there are any changes. If changes are detected it calls wxWindow.Refresh to update the window, and the actual updating of the widgets is done in the…
JanKanis
  • 6,346
  • 5
  • 38
  • 42
3
votes
1 answer

Long polling with EmberJS / Ember-Data?

I have setup a very basic first application where I can add and remove names from a list, which are then added/removed from a database using a RESTful API, using Ember-Data with the default REST Adapter. I'd like to implement some form of…
Anonymous
  • 6,181
  • 7
  • 45
  • 72
3
votes
1 answer

Long polling in SERVICE STACK

We have developed a C# Webservice in Service stack. In this whenever we get a request for checking the availability of a Data we need to check in the Database and return the result. If data is not there we need to wait till we get data and return…
Priya
  • 31
  • 1
3
votes
2 answers

Long polling chat system

I know that long polling is the best way for making chat updates its contents and i know about web-socket but i think that long polling is best because many browsers doesn't support web-socket . The problem is that i dont know how to write the long…
Yassin
  • 1,049
  • 11
  • 15
3
votes
1 answer

Combining print statements with list comprehension in python

I'm writing code to send and receive messages in python using a GSM modem. Whenever a new message is received I get the following response in a list x after reading from a serial port object. +CMTI: "SM",0 # Message notification with index I'm…
Anon
  • 845
  • 5
  • 30
  • 50
3
votes
3 answers

difference between POLLIN and POLLPRI in poll() syscall

The documentation of poll() did not explain this in detail. While polling on an fd, when should one POLLIN and when should one use POLLPRI? Any insights will be useful.
Punit Soni
  • 1,229
  • 3
  • 17
  • 26