Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

threadlib多线程zmq连接发消息, 退出时报错 #1

Open
chencoyote opened this issue Dec 31, 2014 · 1 comment
Open

threadlib多线程zmq连接发消息, 退出时报错 #1

chencoyote opened this issue Dec 31, 2014 · 1 comment
Labels

Comments

@chencoyote
Copy link
Owner

开启Master.py, 到libs目录下执行testlib.py出现如下错误

i recive, goto res publish to see
 []
Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 810, in __bootstrap_inner
  File "/home/chen/work/tawRemo/libs/threadlib.py", line 40, in run
  File "testlib.py", line 21, in handle
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'write'

有的时候却没有, 不知道是zmq连接未退出, 还是线程退出的问题....

@chencoyote chencoyote added the bug label Dec 31, 2014
@chencoyote
Copy link
Owner Author

仔细测试之后, 没有zmq连接一样会报错

            #s.connect(reciver_url)
            #s.send('{"type":"msg","data":"%d"}' % self.i)
            #msg = s.recv()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant