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

angular4 async template binding don't unsubscribe with zip

I have an async template binding such as: [binding]="polling$ | async" In my code, polling$ is derived from a bunch of initial promise like observables combined into a single zipObs$ for convenience: let a$: AsyncSubject, b$:…
Renaud
  • 4,569
  • 7
  • 41
  • 72
3
votes
1 answer

Git/Jenkins Polling ignores commits not ignoring directories

I've previously had SVN as our source control and when using the polling ignore if certain paths, I've been able to set them in the Jenkins config using regex paths like "/project/buildscripts/.*" Now that we're using git, I have one repo full of…
Kevinsyel
  • 143
  • 1
  • 9
3
votes
3 answers

How to poll another server periodically from a node.js server?

I have a node.js server A with mongodb for database. There is another remote server B (doesn't need to be node based) which exposes a HTTP/GET API '/status' and returns either 'FREE' or 'BUSY' as the response. When a user hits a particular API…
Sampath Kumar
  • 165
  • 2
  • 10
3
votes
1 answer

What is the best practice for setting a timeout value to socket poll/select?

I am using the poll mechanism to manage upto 100 connections. Is there any standard practice for what the time out value for the poll() call should be or how to determine it. My case details - I have one dispatcher thread listening on all the…
siri
  • 123
  • 1
  • 13
3
votes
5 answers

How do I do realtime database polling in MySQL/PHP?

I have a Ruby script which is constantly updating a MySQL database. I want to show the "mysql_num_rows()" in realtime. So as an entry is entered into the database by the Ruby script I want the PHP script to update its mysql_num_row() count in…
ethicalhack3r
  • 1,062
  • 3
  • 15
  • 16
3
votes
1 answer

Angular 2, Polling http request and wait for slow responses

I have a service that get data from a server every 3 seconds. Sometimes the server is very slow and many responses comes after 5 or 6 seconds. When this happen ,my service starts to cancel each request instead of waiting the pending one. How can I…
Massimo Magliani
  • 649
  • 2
  • 7
  • 17
3
votes
1 answer

Is it possible a Server-Sent Events to overload the browser in any way?

I am working in a project that is using SSE aproach to push data from server to the browser each 0,5 seconds. It grabs data from Mysql transform it in JSON and sends it to the browser. I was wondering in an extreme scenario, where the browser will…
IgorAlves
  • 5,086
  • 10
  • 52
  • 83
3
votes
2 answers

Java: Detecting modification to a file (file polling?)

What is the most efficient way to detect modification to a file in Java? I've read about file polling however, the polling approach has a number of drawbacks that become apparent as the number of watched files increases. I rather not use polling but…
user459811
  • 2,874
  • 10
  • 37
  • 63
3
votes
0 answers

ls-remote causes a timeout and returns error code -1 when polling a git server through jenkins

I am trying to configure a Jenkins Server (ver 1.656) to trigger build on commit notification, but every polling scheduled or triggered after the notification received by Jenkins keeps timing out : Started on 12.07.2016 13:49:39 Using strategy:…
Dijdkay
  • 56
  • 1
  • 5
3
votes
1 answer

simple server sent-event: clock stop after 30 minutes

I would make a simple clock with sent-event my code is: The client and server is on LAN, and the browser is iceweasel v.38.7.1. php:
Elmer
  • 85
  • 9
3
votes
3 answers

How to poll simple website for updates?

I have a professor who randomly updates his website with homework due tomorrow and seems to expect us to check it every hour. This sounds like a job for a program. His website is simple and entirely html, not even any javascript. How could I…
CodeFusionMobile
  • 14,812
  • 25
  • 102
  • 140
3
votes
1 answer

CouchDB change API on view

Say I have a document "schema" that includes a show_from field that contains a timestamp as a Unix epoch. I then create a view keyed by this show_from date and only return those documents with a key on or before the current timestamp (per the…
Xophmeister
  • 8,884
  • 4
  • 44
  • 87
3
votes
3 answers

Single-threaded sequence-reading multi-user usocket server

I'm trying to write a simple server program using the usocket library that will perform a relatively trivial task - say, echoing data back. I want to make it able to do this with multiple clients, not having the single thread blocked while waiting…
Reepca
  • 323
  • 2
  • 7
3
votes
0 answers

How "expensive" is GetDiskFreeSpaceEx? OR - is there a better way to fallback

I am writing a service that saves files and may potentially fill up one storage and may have a secondary storage to fall back to. I'd like to monitor the amount of free space on the primary storage and quit even trying to write to it if it's…
Aerik
  • 2,307
  • 1
  • 27
  • 39
3
votes
1 answer

How to poll for updates with JSONP?

I have a Web server that updates its data once per minute, and want to make that data available to clients of all types. In order to reduce bandwidth, I set up the PHP script to support conditional GETs, using IF-MODIFIED-SINCE and/or…
Jim Mischel
  • 131,090
  • 20
  • 188
  • 351