long-polling


Handle client timeouts when serving long polling with gevent


I am using gevent to handle long-polling request. These requests will wait around until an AsyncResult's .get method returns. Then it sends back a result back to the long polling client.
The problem is that the clients connection sometimes times out before the AsyncResult fires. If this happens I get an exception when I eventually attempt to send the response back. Which makes sense as the connection is no longer active. Also I have an AsyncResult object that I should stop cleanly if the connection is no longer open.
I am using pywsgi to handle the restful requests for long-polling. Is there a way to detect within the pywsgi handler that the connection closed, but as an event, because my greenlet will be blocking for the AsyncResult.
Any help would be greatly appreciated. Thanks

Related Links

Koa 2 router how to make a long poll request
Confluent long polling properties in kafka-rest
How to combine async and blocking requests in VuGen?
Long polling confusion
WAS Liberty & Atmosphere long-polling 1 min delay
Long Polling interval in atmosphere
MQTT long polling over GPRS/HSDPA
JS and CSS file fails to load when the page is refreshed in grails application which uses Atmosphere Meteor plugin
Security concerns in long polling
Kafka long polling
How to build the request for a long poll url for box.com
how to access enterprise events using Java code
Handle client timeouts when serving long polling with gevent
Long polling blocking multiple windows?
Long polling on a penny auction site?
Cannot implement long polling

Categories

HOME
sendgrid
xamarin
arduino-uno
variables
push-notification
raspberry-pi
objectgears
setup-deployment
angular-ui-bootstrap
append
pheatmap
gorm
node-pdfkit
fancybox-3
nstableview
lombok
uitypeeditor
seaborn
windows-7-x64
undefined
oracle-coherence
nas
tokenize
facebook-instant-articles
language-agnostic
tdd
su
assistant
msys2
atlassian-crucible
procdump
exuberant-ctags
grails-3.1
avcapturesession
asset-pipeline
google-api-nodejs-client
jmonkeyengine
simplexml
streamreader
greenrobot-eventbus
tasker
acoustics
termination
strptime
prolog-setof
promela
integrity
font-size
mako
linode
chord-diagram
google-cdn
gridpane
gridview-sorting
websitepanel
nsviewcontroller
fadeout
itextpdf
system.management
netmq
qtableview
cartesian-product
sframe
sniffer
system32
ng-animate
jscript.net
qpainter
tt-news
javafx-webengine
project-planning
openexr
has-many-through
jquery-layout
hippomocks
seaside
resty-gwt
monomac
c18
batterylevel
jelly
broken-links
getmessage
ticoredatasync
windows-phone-7.1.1
amazon-appstore
gwt-ext
xmlspy
rfc1123
android-sdk-2.1
datareader
blitz++
mozilla-prism
ctp4

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App