Closed minskmaz closed 9 years ago
Are you able to connect at all? Or does it disconnect? Can you paste your connection code?
is there a debugging mode I can put it into ?
def __setattr__(self, key, val):
uid = str(uuid.uuid4())
self._attrs[key] = uid
hosts = ['localhost', ('127.0.0.1', 11211)]
client = YamClient(hosts)
client.set(uid, val).addCallback(self.handler)
it doesn't seem to connect at all - I will look at tcpflow to confirm if there's any activity
"sudo tcpflow -i lo -c port 11211" shows no activity
Is your handler called? You just need to set up a logger, it logs messages via twisted.python.log
.
no handler isn't called
Have you added an errback?
no but I can I figured it was giving me the error anyhow - brb
I will try to insert into an existing project with a functional reactor. might be because I'm running code without rector present
Yep, as a twisted lib a running reactor is a necessary prerequisite. I'll mark this one closed, then - though please do file another ticket if you run into any issues. Thanks!
It gives me the same error in a reactor:
2015-09-16 15:30:38+0000 [-] File "/home/vagrant/projects/foodies/bin/twistd", line 14, in
Yet here's my netstat:
(verymoody)vagrant@minskmaz:~/projects$ netstat -l | grep 11211 tcp 0 0 localhost:11211 : LISTEN
udp 0 0 localhost:11211 :
and I'm able to set and get from python-memcached.
Any suggestions warmly welcomed! Thank you