Comments (7)
This error could be caused by using memory-based connection managers in an
environment with multiple http servers.
Was this error experienced on a setup with multiple http servers?
Original comment by [email protected]
on 14 Aug 2011 at 4:15
from amfast.
Hi
I can't understand the word "multiple http servers" you said.
I use apache(in multi worker threads mod) + mod_wsgi + django.
Is this a "multiple http servers"?
Original comment by [email protected]
on 14 Aug 2011 at 5:06
from amfast.
Your problem is being experienced, because each Apache thread is running a
different Python interpreter with a different heap:
http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Application_Global_Varia
bles
The default AmFast configuration stores connection state in memory. You'll need
to use the classes in sa_connection_manager.py and sa_subscription_manager.py
to store your connection state in a persistent database.
Original comment by [email protected]
on 14 Aug 2011 at 2:44
from amfast.
From the bottom of the linked article: you can also run mod_wsgi in daemon mode
with a single interpreter process. This will ensure that all requests are
handled within the same interpreter process.
Original comment by [email protected]
on 14 Aug 2011 at 2:48
from amfast.
Thanks~
And,Can I use memcache_connection_manager.py instead of
sa_connection_manager.py to store my connection?
Original comment by [email protected]
on 15 Aug 2011 at 12:43
from amfast.
Yes, memcache_connection_manager will work, but it's not very well tested, so
you may run into problems.
Original comment by [email protected]
on 15 Aug 2011 at 1:41
from amfast.
Original comment by [email protected]
on 3 Dec 2011 at 11:34
- Changed state: Invalid
from amfast.
Related Issues (20)
- Problem with the cherrypy echo example HOT 3
- Django specific ClassDef HOT 2
- the examples/links are broken HOT 3
- Trying to get callbacks from tornado to write async messages to Flex HOT 5
- Addressbook example produces error with sqlalchemy 7b1 HOT 1
- memory leak again HOT 3
- Integrate django streaming channel code HOT 2
- The encoder doesn't like objects without a __dict__ attribute HOT 5
- Customize amfast.context.Ref behavior HOT 3
- Build fails with python 2.4 HOT 2
- solved KeyError in memcache_manager.py HOT 3
- Message.convertFail doesn't set the target HOT 1
- I plan to overwrite threadpool.py using coroutine instead of original thread.
- Long-polling not works with multiple http server HOT 4
- Reading dynamic objects from incomplete buffer enters infinite loop HOT 4
- Empty string is a legitimate dict key, but amfast ignores it HOT 1
- 'forensic' functionality
- Installation error
- Installation issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amfast.