Questions tagged [long-polling]

In web programming, long-polling is an emulation of pushing data, implemented by repeated polling with delayed response.

Long polling is itself not a true push; long polling is a variation of the traditional polling technique, but it allows emulating a push mechanism under circumstances where a real push is not possible, such as sites with security policies that require rejection of incoming HTTP/S Requests.

1099 questions
0
votes
1 answer

No data from long polling in PHP

Basically, I'm trying to put together a live feed on my website for an external API that pushes all new data to my database, Here's the current HTML code I'm using to grab my PHP file and get any new content added to the database $min_id_result =…
Curtis
  • 2,646
  • 6
  • 29
  • 53
0
votes
1 answer

Driving events across custom TCP Long-Polling server

I’m trying to write a custom TCP based long polling server that will serve as a go-between for other TCP connections that require more persistence than a mobile phone can provide. The way I’m trying to do it is writing an asynchronous TCP server in…
Crowe T. Robot
  • 2,045
  • 17
  • 18
0
votes
0 answers

how to build a real chat application in rails 3?

I'm building a web app which has chatting as a feature. I've decided to use the private pub gem for this. But in private pub you have to subscribe to a channel with this code snippet <%= subscribe_to "/messages/new" %> Now i want this code to be…
Akshay Takkar
  • 500
  • 1
  • 7
  • 21
0
votes
1 answer

Does dot cloud support http long polling

I read that dot cloud supports WebSockets. I am planning to use socket.io in my application. Since socket.io will fall back on long polling if browser does not support websockets, I was wondering whether dot cloud supports http long polling. PS: I…
jrajp2184
  • 310
  • 1
  • 9
0
votes
1 answer

continuous polling from android client to webapi server

I'm looking for some suggestions to essentially do an "ajax long poll" but with native android components. There will be no HTML in my app so using something like SignalR is out of the question. I really don't want to go the sockets route unless I…
Christopher Johnson
  • 2,629
  • 7
  • 39
  • 70
0
votes
1 answer

Long polling and other fallback support for Websocket using Jetty 9

Can somebody please let me know how i can add long polling and other fallback support for websocket using Jetty 9?
Devly
  • 13
  • 5
0
votes
1 answer

long polling and queue to hold requests

POST /add-request - adds new request POST /get-request - returns first (oldest) request I have many Java apps which are called "slaves". Their job is to call POST /get-request to get request to process and after processing it save it to database.…
user606521
  • 14,486
  • 30
  • 113
  • 204
0
votes
1 answer

Less resources for steady client connections, why?

I heard of node.js is very suitable for applications where a persistent connection from the browser to the server is needed. That "long-polling" technique is used, that allows to send updates to the user in real time without needing a lot of server…
vuvu
  • 4,886
  • 12
  • 50
  • 73
0
votes
1 answer

how to implement a low frequency low message rate browser push

we want to enter push technology, and our use case is as following: huge number of simultanous clients (several 100.000s) low message rate (~ 1 every minute) small data (<500 bytes/message) latency under 2 seconds now we have two competing…
fujan
  • 13
  • 2
0
votes
1 answer

Long polling PHP. Keep DB connection or not?

I'm trying out long polling for the first time. In the PHP script I have a while-loop with a sleep-timer that freezes the script for 10 seconds, then it looks for new stuff in the database again. I'm thinking performance and server/database…
user1121487
  • 2,662
  • 8
  • 42
  • 63
0
votes
2 answers

Long-polling server

From what I understand after the number of max connections is exhausted the server will stop responding which is likely to happen on a live server with long-polling requests on index, will this also happen in a Litespeed server? From what I…
0
votes
3 answers

CometD and Tomcat is not Using Long-Polling

I have problems getting tomcat work with cometD and Longpolling. I see in firebug that all requests are in ms area although the poll should stay for at least 1 second. The Server does not respond in ms time. Here is what i got in firebug: 8ms …
Androidewbie
  • 345
  • 3
  • 14
0
votes
1 answer

PHP: Longpolling - $current_row & $latest_row

In my JavaScript Long-polling script, I call msgsrv.php to echo the num_rows not on the screen yet. Here's the JavaScript which is functioning: