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

What does "polls data from web services" mean?

What does "polls data from web services" mean? Could you give me some examples? Also, what are the requirements for this kind of application?
kanna
  • 1
  • 1
  • 1
-3
votes
2 answers

How to poll a promise in repeating syncroneous code?

Let's say we have some Promise for we knew it resolves at some point. Now I have sync code (ag. no await possible) called repeatedly (eg. onAnimationFrame). How to use the result of the promise there, if it is fullfilled? Like (JS pseudocode): let…
dronus
  • 10,774
  • 8
  • 54
  • 80
-3
votes
1 answer

How to handle high traffic for Node-based e-commerce website?

I am trying to design a waiting room system to handle high traffic scenario for e-commerce website. Visitors should query the system until it returns an access token for them to enter the website. I dram a diagram to explain my idea of how the…
-3
votes
1 answer

How can I wait for n seconds for a named pipe to open?

I have a program that I want to exit when I can not open a pipe for read, after N (lets say 30) seconds. My code works with blocking name pipes and I can not change this. I know about select() and poll() but I can not get them to work without…
George Sp
  • 553
  • 5
  • 20
-3
votes
1 answer

How to animate layout like this picture

want animate layout like this picture https://cdn.dribbble.com/users/430056/screenshots/2187521/luna.gif https://i.stack.imgur.com/ipoOC.jpg Thanks in advance.
-3
votes
2 answers

Why isn't http server consuming a lot of CPU?

The server should response as soon as possible, isn't the server process always polling if there are requests? So, it would like a while loop. But why is not CPU(single core) all consumed if there is no visit?
heLomaN
  • 1,634
  • 2
  • 22
  • 33
-3
votes
1 answer

php way to determine if apache has connections waiting

Ok, I have a feature that I would like to implement some type of long polling. The only problem is, I don't want to bump up against the "maxconnections" problem. I figure I could have my PHP process wait for updated data only if Apache has no…
john ellis
  • 2,152
  • 2
  • 15
  • 13
-4
votes
2 answers

How to poll on HTML page?

Lets assume I want to design a web page with stock ticker. I need my webpage to continuously as for fresh updates for stocks. How to do it ? From my limited knowledge, AJAX wont be of much help. What I am looking for is what sort of 'poller' can be…
JavaDeveloper
  • 5,320
  • 16
  • 79
  • 132
-4
votes
1 answer

polling a file in java, get the latest written file content to a string

I would like to create a java program which would poll a log file infinitely. Whenever there is some entry into that logfile, i would like to read the latest contents into the file just written. can anyone please let me know the efficient method to…
-4
votes
1 answer

How To Make Cursor Position Move Faster

I've been experimenting with using my Wii U gamepad to control my PC and have been hitting a few roadblocks. I first tried to use an application called Usendmii but the button and cursor update polling rate is only at 50ms from what I have read.…
Travis T
  • 5
  • 4
-4
votes
1 answer

Golang 403 forbidden error

When I try to check a local host it returns the correct status but when I am trying to poll a machine on the network it shows 403-Forbidden error. package main import "net/http" import "fmt" func main() { resp, err :=…
harry4
  • 189
  • 1
  • 4
  • 16
1 2 3
96
97