コード例 #1
0
ファイル: ipc.py プロジェクト: AndrewXiang/firefly-proxy
 def _do(self, handler, chan, args, kwargs):
     try:
         ret = handler(*args, **kwargs)
         if chan:
             chan = rebuild_connection(*chan)
             chan.send(ret)
             chan.close()
     except Exception, e:
         if chan:
             chan = rebuild_connection(*chan)
             chan.send(e)
             chan.close()
コード例 #2
0
ファイル: ipc.py プロジェクト: yudf2010/firefly-proxy
 def _do(self, handler, chan, args, kwargs):
     try:
         ret = handler(*args, **kwargs)
         if chan:
             chan = rebuild_connection(*chan)
             chan.send(ret)
             chan.close()
     except Exception, e:
         if chan:
             chan = rebuild_connection(*chan)
             chan.send(e)
             chan.close()
コード例 #3
0
ファイル: process.py プロジェクト: llazzaro/WorQ
def _rebuild_connection(authkey, *args):
    current_process().authkey = AuthenticationString(authkey)
    return rebuild_connection(*args)
コード例 #4
0
ファイル: process.py プロジェクト: pdam/WorQ
def _rebuild_connection(authkey, *args):
    current_process().authkey = AuthenticationString(authkey)
    return rebuild_connection(*args)