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

Does AJAX long-polling release the incoming data immediately?

For a new interface on our application I decided that it was necessary to forego websockets and choose comet for its much-wider support. I realized there are several techniques, and I need to ensure I choose the right one. The question: Does the…
crockpotveggies
  • 12,682
  • 12
  • 70
  • 140
0
votes
1 answer

Using Jetty continuations in Restlet to implement Long-Polling

I have this Restlet structure: I instanciate a Server object: server = new Server(new Context(), config.getServerProtocol(), config .getServerPort()); Afer i instanciate a new MyApp class that extends Application: app =…
Kalamarico
  • 5,466
  • 22
  • 53
  • 70
0
votes
3 answers

Are WCF polling duplex services usable by other clients?

I'm writing a server app with a silverlight client. At some point I'd like non-silverlight clients to be able to use my services. Right now I've written some WCF services which get polled, but I'm not happy with the responsiveness. I'm thinking of…
mcintyre321
  • 12,996
  • 8
  • 66
  • 103
0
votes
0 answers

Long polling in pyjamas

I have an application written in pyjamas which must check for new events to update an event table in the browser. It is critical that the events are displayed within a very small window of them happening, so that the operator is aware of the issues…
blueFast
  • 41,341
  • 63
  • 198
  • 344
0
votes
1 answer

Spray with Air Timeout for Comet

I am building an Air application that long-polls a Spray server to get relevant updates. I am new to Spray and have read that, if requests are not handled on time, a 500 timeout error is automatically sent to the client by the framework. I can catch…
Eduardo
  • 8,362
  • 6
  • 38
  • 72
0
votes
1 answer

notification and messaging system in javascript and php (without the need of having to install additional software serverside)

i'm running a social network with a messaging and notification feature. each time a user sends a message or places a notification for another user, a row is inserted into a table news_updates with the details about the message or notification and…
0
votes
1 answer

Socket RPC with Tornado in an established Apache/PHP environment

We've got an establish Apache/PHP site, with a Flash front-end. We're going to start to need to implement some sort of socket communication, or 'long-polling', to push updates to the flash app. Since this obviously isn't going to be a good situation…
Nick Jennings
  • 3,853
  • 6
  • 30
  • 45
0
votes
1 answer

Long pulling android

I have Long Pull web service. How I can connect my android client with Long Pull server? I need permanent background service for receiving messages from server and show they as notifications.
user1021984
  • 621
  • 3
  • 9
  • 25
0
votes
1 answer

How does Digg's streaming API work?

I really like this: http://services.digg.com/2.0/stream Data is continuously received using a single connection, content-type is application/json. Also, it's consumable by a browser. How is this implemented? Looking around a bit it does not seem to…
OG Dude
  • 936
  • 2
  • 12
  • 22
0
votes
1 answer

Can I abuse the browser timeout to avoid busy-polling the server for the result of a long-running task

In my application, the client can request a complex task that could take 1-2 minute to complete. The task runs in a separated thread and the request handler communicates with it via a BlockingQueue. Currently, the sever immediately redirects the…
billc.cn
  • 7,187
  • 3
  • 39
  • 79
0
votes
2 answers

AJAX Long-polling doesn't keep connection open

I've been trying for the last two days to get this to work with no luck. It executes one time, but fails to continue to update after the initial load. The function does not automatically update, nor does it relaunch after 30 seconds. The code seems…
Ian
  • 1,850
  • 6
  • 23
  • 38
0
votes
3 answers

Long polling ajax structure issue

So I found this good example of long-polling, but I couldn't figure out how to transfer variables through it. This is what I came up with, but it doesn't work. I'm pretty confident the issue is with the dataString and type, because that's the part…
Ian
  • 1,850
  • 6
  • 23
  • 38
0
votes
2 answers

Long Polling set_time_limit() to the max possible

I'm wondering how to set the max possible time limit for a php page, set_time_limit(number); I looked of on the long polling that Facebook use it's 40 seconds why this number and not more ? Is it a best practice because then the browser will cancel…
Jerome Ansia
  • 6,854
  • 11
  • 53
  • 99
0
votes
1 answer

PHP/Mysql/jQuery - Long Polling - Best delay between 2 database checks

I'm working currently on a long polling script where i've to check a database for new changes. I'm wondering if it will be too much resources consuming to do the query in a while loop then do the query again without any delay, or if i should let a…
Jerome Ansia
  • 6,854
  • 11
  • 53
  • 99
-1
votes
1 answer

Long polling with NSURLRequest

I have an one basic doubt that hasn't been found yet after looking in search and stackoverflow. I have a long polling backend implementation in PHP. The logic there is that connection remains alive until new message is found in server. It's an…
padam thapa
  • 1,471
  • 2
  • 20
  • 41