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

I'm in MVVM ViewModel hell

So far, I am really happy with the way things have gone in my app's transition from typical click event handlers everywhere, to complete GUI decoupling. Now I'm running into something I can't quite figure out, and it's related to a window that I…
Dave
  • 14,618
  • 13
  • 91
  • 145
5
votes
2 answers

Implementing poll() on a TCP server's read/write

I need this server to be able to listen for and establish new connections with clients while simultaneously writing to existing connections.. ie. Asynchronous non-blocking i/o. I've been told to use poll() but after spending an inordinate amount of…
achtung
  • 75
  • 1
  • 5
5
votes
2 answers

jenkins debugging of SCM

How can you debug and investigate why SCM polling is not working jenkins? Clearly, there are easy ways to enable it , but I'm finding that it simply "stops" working sometimes, and although I can see the SCM logs which say polling hasnt happened…
jayunit100
  • 17,388
  • 22
  • 92
  • 167
5
votes
1 answer

GitHub API: How to improve very in-efficient polling on activity events?

GitHub API provides the feature of activity events for users, orgs and repos. The APIs support pagination upto 10 pages for a total of 300 events with 30 events per page. Rate Limiting is achieved using ETAG headers. I am trying to poll this API to…
auny
  • 1,920
  • 4
  • 20
  • 37
5
votes
1 answer

How to monitor a file descriptor for new data availability?

Consider the following code snippet. #include #include #include #include int main(int argc, char ** argv) { int fd; char buf[1024]; int i; struct pollfd pfds; fd = open(argv[1],…
LuisABOL
  • 2,951
  • 4
  • 25
  • 57
5
votes
3 answers

Serial Port Polling and Data handling

I am trying to read from several serial ports from sensors through microcontrollers. Each serial port will receive more than 2000 measurements (each measurement is 7 bytes, all in hex). And they are firing at the same time. Right now I am polling…
Timtianyang
  • 273
  • 2
  • 8
  • 19
5
votes
1 answer

Extended protection is not supported or not enabled on this platform issue logged in server WCF trace logs

Can't understand why I'm getting many warnings in WCF trace log: TraceIdentifier: http://msdn.microsoft.com/en-GB/library/System.ServiceModel.Activation.WebHostNoCBTSupport.aspx Description: Extended protection is not supported or not enabled on…
sll
  • 61,540
  • 22
  • 104
  • 156
5
votes
3 answers

Can I poll a database every 3 seconds?

I am building a system to asynchronously send mails after processing data (it could take up to 10 seconds the processing). My initial idea was to have a Windows service poll the database with data processing requests every 3 seconds for the first…
BBQ
  • 618
  • 1
  • 7
  • 20
5
votes
6 answers

Is there a way to poll a socket in C# only when something is available for reading?

I'm wondering whether there is a way to poll a socket in c# when only one of the conditions (data is available for reading) is satisfied, I'm aware of the socket.Poll method but this can return true if any number of the 3 conditions specified…
Dark Star1
  • 6,986
  • 16
  • 73
  • 121
5
votes
3 answers

Why is this message not only displayed when a file is written to (using the poll C Linux function)?

I was reading about poll in C programming and built an application given on the poll(2) man page. Here is the example: #include #include #include #include int main() { struct pollfd fds[2]; int…
duslabo
  • 1,487
  • 4
  • 20
  • 33
4
votes
4 answers

alternative to polling database?

I have an application that works as follows: Linux machines generate 28 different types of letter to customers. The letters must be sent in .docx (Microsoft Word format). A secretary maintains MS Word templates, which are automatically used as…
dknyc
4
votes
1 answer

AJAX Polling - Check for new database entry

I'm polling my database every one second and I need it to do something only after a new entry has been submitted to the database; it can't just re-pull everything. Any help?
Clinton Jooooones
  • 887
  • 3
  • 12
  • 19
4
votes
2 answers

how to take an action after takeUntil rxjs function

So I am trying to have a boolean be true if the function running runs long enough to trigger the takenUntil function which is running on a timer. Here is the code start =…
4
votes
1 answer

Alternative to polling for job scheduler

We've got need for a job server here at work and I'm currently playing with Quartz.net, but the idea of creating my own appeals to me. At the very least understanding what Quartz.net may be doing under the covers can't hurt my understanding/chances…
Grummle
  • 1,364
  • 1
  • 12
  • 21
4
votes
2 answers

Continuous polling of backend in vue.js

I have a vue.js application, I'm integrating a 3rd party payment provider support. The way it works is the UI sends a payment request to the backend, the backend processes it, sends a request to the PSP, and gets back a redirect url. The frontend…
Shaggydog
  • 3,456
  • 7
  • 33
  • 50