Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sockets 并行python错误:运行时错误(“套接字连接断开”)_Sockets_Parallel Python - Fatal编程技术网

Sockets 并行python错误:运行时错误(“套接字连接断开”)

Sockets 并行python错误:运行时错误(“套接字连接断开”),sockets,parallel-python,Sockets,Parallel Python,我正在使用一个简单的程序发送函数: import pp nodes=('mosura02','mosura03','mosura04','mosura05','mosura06', 'mosura09','mosura10','mosura11','mosura12') nodes=('miner:60001',) def pptester(): js=pp.Server(ppservers=nodes) js.set_ncpus(0) tmp=[] fo

我正在使用一个简单的程序发送函数:

import pp
nodes=('mosura02','mosura03','mosura04','mosura05','mosura06',
       'mosura09','mosura10','mosura11','mosura12')
nodes=('miner:60001',)
def pptester():

   js=pp.Server(ppservers=nodes)
   js.set_ncpus(0)
   tmp=[]
   for i in range(200):
      tmp.append(js.submit(ppworktest,(),(),('os',)))
   return tmp

def ppworktest():
   import os
   return os.system("uname -a")
结果是:
你解决了吗?甚至在更改pptransport.py中的超时值后,我也会遇到类似的错误。是否有可能接收大小计算错误?我在
pptransport.py的代码中看到字节模式是
“!Q”
对于
struct.calcsize
struct.unpack
你认为你能以某种方式输出
e_size
的值,看看它是否有意义吗?@AIB我已经转向ipython并行-它似乎有一个更快的发布和错误修复周期。
wkerzend@mosura:/home/wkerzend/tmp/ppython_test>ssh miner "source ~/coala_python_setup.sh;ppserver.py -d -p 60001"
2010-04-12 00:50:48,162 - pp - INFO - Creating server instance (pp-1.6.0)
2010-04-12 00:50:52,732 - pp - INFO - pp local server started with 32 workers
2010-04-12 00:50:52,732 - pp - DEBUG - Strarting network server interface=0.0.0.0 port=60001
Exception in thread client_socket:
Traceback (most recent call last):
  File "/usr/lib64/python2.6/threading.py", line 525, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.6/threading.py", line 477, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/wkerzend/python_coala/bin/ppserver.py", line 161, in crun
    ctype = mysocket.receive()
  File "/home/wkerzend/python_coala/lib/python2.6/site-packages/pptransport.py", line 178, in receive
    raise RuntimeError("Socket connection is broken")
RuntimeError: Socket connection is broken