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

Session Timeout w/Ajax Polling in Spring Web Application

I'm developing a Spring 3.0 based web application that requires all users to log in to view data. Once logged in, certain parts of the screen use an AJAX polling mechanism to update screen content in the background. Currently, our session will not…
nwwatson
  • 825
  • 7
  • 13
5
votes
0 answers

Angular 4 polling data without overriding the item being updated

Inside the sensors component I have the following code which polls data each 5 seconds: Observable .interval(this.sensorsRefreshRate * 1000) .startWith(0) .switchMap(() => Observable.fromPromise(this.getSensorsPromise(this.hubId))) …
Developer Thing
  • 2,704
  • 3
  • 21
  • 26
5
votes
2 answers

Vaadin 8 : reload grid with data from server every 1min

I am trying to have a auto refresh feature for the grid which basically, updates the grid with latest data from the server every 'n' seconds. I was able to implement the PollListner whenever the user enables Auto-Refresh. UI ui=…
SDS
  • 457
  • 5
  • 17
5
votes
1 answer

Reliable way of monitoring file changes in a directory using the .NET framework

I'm looking for a reliable way of looking for changes in a directory. I have tried using the FileSystemWatcher, but it's rather inaccurate when many small files are created, changed or deleted. It misses about 1 or 2 % of the files in my tests. That…
Christian Sparre
  • 955
  • 3
  • 15
  • 25
5
votes
1 answer

What are the pros and cons of long polling vs. regular polling?

I have a web page that I need to check the server for an update every second. Updates could be relatively frequent or infrequent. There could be a lot of web clients simultaneously checking the server for updates. This could either be an AJAX…
Nate Reed
  • 6,761
  • 12
  • 53
  • 67
5
votes
2 answers

Best way to poll a web service (eg, for a twitter app)

I need to poll a web service, in this case twitter's API, and I'm wondering what the conventional wisdom is on this topic. I'm not sure whether this is important, but I've always found feedback useful in the past. A couple scenarios I've come up…
user53577
5
votes
3 answers

ssl_read() in TLS/SSL with TCP stream not returning the whole buffer written by BIO_write()

The purpose of the following portion of code is to poll on a socket fd-set and if data (ssl encrypted) is available, read it and decrypt it by openssl library. The underlying transport layer is TCP Stream, so data comes as stream (not packet). Now,…
AmiyaG
  • 170
  • 2
  • 7
5
votes
2 answers

Send SSE to specific clients

I have a web app in which a teacher creates a class and is able to upload materials and add students to the class. Students can also join a particular teacher's class and download any uploaded material. When a teacher uploads a material to a…
Dapope
  • 128
  • 1
  • 9
5
votes
2 answers

StreamedResponse with Silverlight 4 polling duplex not sending updates

I'm trying to enable a streamed response using Silverlight 4 and polling duplex, but I'm getting strange behaviour when the rate at which updates are sent to the client is greater than the maxOutputDelay, which results in no updates being sent. For…
Andrew
  • 655
  • 2
  • 7
  • 11
5
votes
1 answer

Notify about / check for SCM poll failure in Jenkins

I would like to check for or get notifications about SCM poll failures in Jenkins (for example, when the repository URL had changed, or branch got deleted). I thought about these: a) A Jenkins console script, which would list such faulty jobs b)…
Veelkoov
  • 1,366
  • 14
  • 26
5
votes
1 answer

How to do polling in cassandra?

I'm trying to find a way to do polling over a cassandra database, but I'm new at this and I don't know how. Lets say I have a table "users" like this -> users -> user_name -> gender -> state and I want to do polling constantly so I know…
5
votes
2 answers

RxJava + retrofit, get a List and add extra info for each item

I'm playing around with RXJava, retrofit in Android. I'm trying to accomplish the following: I need to poll periodically a call that give me a Observable> (From here I could did it) Once I get this list I want to iterate in each Delivery and call…
Marcel
  • 2,094
  • 3
  • 23
  • 37
5
votes
2 answers

Asynchronous I/O on Mac OS X

Meaning the C10K problem, what is the best way to do asynch I/O on Mac OS X (assume to use on Mac and iPhone/iPad)? On Linux our choice is epoll, on Windows is I/O Completion Ports. Top priority is performance and scalability (thousands of…
stas
  • 631
  • 2
  • 7
  • 9
5
votes
1 answer

Alternative to polling MSSQL table

I have a MSSQL table that contains scheduled tasks that my Windows Service should process based off a timestamp and I was wondering what alternatives I have to polling the table like this SELECT * FROM mydb WHERE SYSUTCDATE() >= timestamp I'd…
user3811205
  • 195
  • 2
  • 13
5
votes
1 answer

Getting progress of PHP script called by jQuery post

I want to periodically check the status of a php script and display it on the browser. Here is the jQuery that is used to post. $(document).ready(function() { $("#tempbut").click(function(event){ $('#loader').show(); …
rawrzors
  • 167
  • 1
  • 5
  • 13