实现Ctrl-c中断recv

This commit is contained in:
chenxy123 2016-10-10 23:47:46 +08:00
parent 0cac529264
commit 49113c1668

View File

@ -2,12 +2,17 @@
import threading
import traceback
import signal
import zmq
from msgpack import packb, unpackb
from json import dumps, loads
# 实现Ctrl-c中断recv
signal.signal(signal.SIGINT, signal.SIG_DFL)
########################################################################
class RpcObject(object):
"""