Giter VIP home page Giter VIP logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
[deleted comment]

from amfast.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
The default ConnectionManager and SubscriptionManager classes store message 
data in local memory, so they won't work in a multi-server environment. 
Configure your messaging system with one of the alternate manager classes to 
work in a multi-server environment. I recommend the 
sa_connection_manager.SaConnectionManager and 
sa_subscription_manager.SaSubscriptionManager classes.

Original comment by [email protected] on 30 Jan 2012 at 3:59

from amfast.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
thanks for comment~

I am using the memcache-connectionManager and memcache-subscriptionManager, 
because of a little worried about db's performance.

And,the long-polling seems doesnot work with gevent/tornado as http server.

event.wait() is still block,while a new message is ready in other 
coroutine/interpreter

I am using : nginx(upstreaming) + several gevent/tornado process(http server) + 
django/amfast(framework) + logical code

I saw the docstring in httpchannel._waitForMessage method,but I'm not sure 
whether the gevent is a Synchronous servers or not.


Original comment by [email protected] on 1 Feb 2012 at 10:10

from amfast.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
env:nginx(upstreaming) + ONE gevent/tornado process(http server) + 
django/amfast(framework) + logical code

when I publish a msg,I got an error below:

File 
"/usr/local/lib/python2.6/dist-packages/AmFast-0.5.3_r536-py2.6-linux-i686.egg/a
mfast/remoting/thread_pool.py", line 64, in run
    task()
  File "/usr/local/lib/python2.6/dist-packages/AmFast-0.5.3_r536-py2.6-linux-i686.egg/amfast/remoting/thread_pool.py", line 12, in __call__
    self.function(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.6/dist-packages/AmFast-0.5.3_r536-py2.6-linux-i686.egg/amfast/remoting/channel.py", line 438, in _notifyConnections
    if connection.notify_func is not None:
  File "/usr/local/lib/python2.6/dist-packages/AmFast-0.5.3_r536-py2.6-linux-i686.egg/amfast/remoting/connection.py", line 102, in _getNotifyFunc
    return self._manager.getNotifyFunc(self)
  File "/usr/local/lib/python2.6/dist-packages/AmFast-0.5.3_r536-py2.6-linux-i686.egg/amfast/remoting/memcache_connection_manager.py", line 158, in getNotifyFunc
    return connection._getNotifyFuncById(connection._notify_func_id)
AttributeError: 'Connection' object has no attribute '_notify_func_id'


I read the code in remoting/memcache_connection_manager.py:
    def getNotifyFunc(self, connection):
        notify_func_id = self.mc.get(self.getKeyName(connection.id, 'notify_func_id'))

        if notify_func_id is None:
            return None
        else:
            return connection._getNotifyFuncById(connection._notify_func_id)


I guess the last line should be:
return connection._getNotifyFuncById(notify_func_id)
instead of 
return connection._getNotifyFuncById(connection._notify_func_id)

Original comment by [email protected] on 2 Feb 2012 at 8:18

from amfast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.