Questions tagged [long-polling]

12 questions
6
votes
2 answers

How to handle 20k concurrent persistent connections

I'm trying to design an architecture to handle massive TCP socket connections and I'm in doubt on the limits of this architecture. I'll have to handle ~20k concurrent TCP connections and these are long-polling connections, they'll remain connected…
Aldebaran
  • 335
  • 3
  • 12
3
votes
0 answers

Performance issues with Apache + Django + socket.io (long-polling) + Proxy

I'm trying to set up a website with django, apache and socket.io. Thanks to some tutorials and other stackoverflow questions, I managed to make everything work, except for a severe lag, that occurs when I send multiple socket.io messages within a…
basilikum
  • 217
  • 3
  • 11
2
votes
0 answers

mod-mono-server4.exe using 100% of CPU on Ubuntu 14.04.1 LTS

I have an ASP.NET application that uses some long polling magic. The problem comes when the server has accepted some requests and it's just waiting to return them. If I restart apache in that moment I get multiple instances of mod-mono-server4.exe…
Hristo Kolev
  • 410
  • 5
  • 15
2
votes
1 answer

Long Polling Options: Nginx, PHP, Node.js

Also posted here: https://stackoverflow.com/questions/8839295/long-polling-options-nginx-php-node-js I'm designing a long-polling app to broadcast small changes very rapidly to, possibly, a large number of users. The app will run in tandem with a…
1
vote
0 answers

nginx proxy long polling

We have a web app that requires a GET endpoint (that compute a long task) to be transformed to delegate the task to a worker (with a POST endpoint to create the task that will be delegated to worker, then a GET endpoint that will return 4XX until…
nicoqwil
  • 11
  • 2
1
vote
0 answers

How do I use AWS Elastic Beanstalk Enhanced Health monitoring with a long polling app?

With AWS Elastic Beanstalk, I have an app setup with enhanced health monitoring. However, the app uses long polling so that it can sync between a mobile app and the web app. The long poll is a 60 second timeout, and this causes enhanced health to…
1
vote
1 answer

Apache processes become stale but won't time out

I'm having an issue with apache2 httpd. The apache is using mpm_prefork and the web application uses php. I noticed that the machine where the apache runs suddenly drops to 0% cpu usage during the night. When I went to investigate the problem I saw…
PhilippN
  • 63
  • 1
  • 3
1
vote
1 answer

Nginx & long poll: Best practices to reduce memory and bandwidth footprint

I use nginx in this mode for BOSH and chat clients along with gzip. location ~* /http-bind/ { proxy_buffering off; keepalive_timeout 55; access_log off; tcp_nodelay on; proxy_pass http://x.x.x.x:1111; } Is this the…
Quintin Par
  • 4,293
  • 10
  • 46
  • 72
1
vote
1 answer

nginx detecting dead clients

Normally when you pull the network cable out of a network device (which simulates some drop on the network, so an obscure disconnect), the underlaying sockets do not detect a disconnect (at least our units don't) so we use keep alive to drop…
Lonko
  • 115
  • 5
0
votes
0 answers

Nginx configuration to prevent spam connections on HTTP long polling endpoint

I have a HTTP long polling endpoint that anyone can connect to for updates. The nature of the application requires the solution to be open, it cannot sit behind any form of authentication. The server accepts a maximum of 1000 connections, but…
S-K'
  • 1,281
  • 2
  • 11
  • 15
0
votes
0 answers

SignalR long pooling disconnecting silently on IIS 7.5 and Windows Server 2008 R2

(I asked this question on StackOverflow, and it contais code I ommited here, but I think it would be suitable to ask it here aswell, since it's a network issue I'm facing) I have an API (WebAPI) with SignalR hosted on an IIS 7.5 at a Windows Server…
0
votes
2 answers

Does http protocol standard support long polling?

I recently read about long-polling concept which can be used with http. I want to understand, if any http protocol standard itself supports long-polling concept, so that depending on how client configures the http connection, the server can behave…