Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/317.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.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
Python Corba事件客户端ETIMEDOUT_Python_Linux_Corba - Fatal编程技术网

Python Corba事件客户端ETIMEDOUT

Python Corba事件客户端ETIMEDOUT,python,linux,corba,Python,Linux,Corba,我已经用omniOrb和Python构建了一个CORBA事件服务客户端。我对Java客户机也有同样的问题。我很确定我和这篇文章经历了同样的事情,因为我的strace看起来非常相似,但他没有确切解释他是如何修复的: 底线是我的客户端启动了,但由于双方都出现了ETIMEDOUT错误,因此从未从服务器接收到事件。非常感谢您的指导 提前谢谢 编辑 不幸的是,更新ip6tables(或iptables)无法工作 似乎我能够获得远程呼叫返回数据,但一旦它想要启动响应(事件),就会导致此问题(请参阅下面日志的

我已经用omniOrb和Python构建了一个CORBA事件服务客户端。我对Java客户机也有同样的问题。我很确定我和这篇文章经历了同样的事情,因为我的strace看起来非常相似,但他没有确切解释他是如何修复的:

底线是我的客户端启动了,但由于双方都出现了ETIMEDOUT错误,因此从未从服务器接收到事件。非常感谢您的指导

提前谢谢

编辑

不幸的是,更新ip6tables(或iptables)无法工作

似乎我能够获得远程呼叫返回数据,但一旦它想要启动响应(事件),就会导致此问题(请参阅下面日志的开头)

这是我在斯特拉斯的日志

[pid 17571] futex(0xa298288, FUTEX_WAIT_PRIVATE, 1, {4, 999961668} <unfinished ...>
[pid 17568] <... poll resumed> )        = 1 ([{fd=10, revents=POLLOUT}])
[pid 17568] getpeername(10, {sa_family=AF_INET, sin_port=htons(23120), sin_addr=inet_addr("10.10.10.250")}, [16]) = 0
[pid 17568] fcntl64(10, F_SETFL, O_RDONLY) = 0
[pid 17568] getsockname(10, {sa_family=AF_INET, sin_port=htons(37741), sin_addr=inet_addr("10.10.10.204")}, [16]) = 0
[pid 17568] getpeername(10, {sa_family=AF_INET, sin_port=htons(23120), sin_addr=inet_addr("10.10.10.250")}, [16]) = 0
[pid 17568] fcntl64(10, F_SETFD, FD_CLOEXEC) = 0
[pid 17568] send(10, "GIOP\1\1\1\0035\0\0\0\2\0\0\0-\0\0\0\24\1\17\0NUP\0\0\0\24\0"..., 65, 0) = 65
[pid 17568] recv(10,  <unfinished ...>
[pid 17570] <... poll resumed> )        = 0 (Timeout)
[pid 17570] gettimeofday({1292097412, 746922}, NULL) = 0
[pid 17570] poll([{fd=3, events=POLLIN}, {fd=9, events=POLLIN}], 2, 0) = 0 (Timeout)
...
[pid 17570] gettimeofday({1292097412, 747503}, NULL) = 0
[pid 17570] poll([{fd=3, events=POLLIN}, {fd=9, events=POLLIN}], 2, 0) = 0 (Timeout)
[pid 17570] gettimeofday({1292097412, 747544}, NULL) = 0
[pid 17570] gettimeofday({1292097412, 747563}, NULL) = 0
[pid 17570] poll([{fd=3, events=POLLIN}, {fd=9, events=POLLIN}], 2, 50 <unfinished ...>
[pid 17568] <... recv resumed> "GIOP\1\1\0\4\0\0\0\10\0\0\0\2\0\0\0\1", 8192, 0) = 20
[pid 17568] send(10, "GIOP\1\1\1\0z\0\0\0\1\0\0\0\1\0\0\0\f\0\0\0\1\0\0\0\1\0\1\0"..., 134, 0) = 134
[pid 17568] recv(10,  <unfinished ...>
[pid 17570] <... poll resumed> )        = 0 (Timeout)
[pid 17570] gettimeofday({1292097412, 797695}, NULL) = 0
[pid 17570] gettimeofday({1292097412, 797716}, NULL) = 0
[pid 17570] poll([{fd=3, events=POLLIN}, {fd=9, events=POLLIN}], 2, 50 <unfinished ...>
[pid 17568] <... recv resumed> "GIOP\1\1\0\1\0\0\0\330\0\0\0\1\0\0\0\1\0\0\0\f\1\0\0\0\1\0\1\0"..., 8192, 0) = 228
[pid 17568] write(1, "logged on\n", 10logged on
) = 10
[pid 17568] send(10, "GIOP\1\1\1\0u\0\0\0\0\0\0\0\6\0\0\0\1\0\0\0#\0\0\0\24\1\17\0"..., 129, 0) = 129
[pid 17568] recv(10,  <unfinished ...>
[pid 17570] <... poll resumed> )        = 0 (Timeout)
[pid 17570] gettimeofday({1292097412, 847848}, NULL) = 0
[pid 17570] gettimeofday({1292097412, 847868}, NULL) = 0
[pid 17570] poll([{fd=3, events=POLLIN}, {fd=9, events=POLLIN}], 2, 50 <unfinished ...>
[pid 17568] <... recv resumed> "GIOP\1\1\0\1\0\0\0\r\0\0\0\0\0\0\0\6\0\0\0\0\1", 8192, 0) = 25
[pid 17568] send(10, "GIOP\1\1\1\0\t\1\0\0\0\0\0\0\10\0\0\0\1\0\0\0#\0\0\0\24\1\17\0"..., 277, 0) = 277
[pid 17568] recv(10,  <unfinished ...>
[pid 17570] <... poll resumed> )        = 0 (Timeout)
[pid 17570] gettimeofday({1292097412, 898007}, NULL) = 0
[pid 17570] gettimeofday({1292097412, 898028}, NULL) = 0
[pid 17570] poll([{fd=3, events=POLLIN}, {fd=9, events=POLLIN}], 2, 50 <unfinished ...>
[pid 17568] <... recv resumed> "GIOP\1\1\0\1\0\0\0\20\0\0\0\0\0\0\0\10\0\0\0\0\0\2I\360", 8192, 0) = 28
[pid 17568] write(1, "150000\n", 7150000
)     = 7
[pid 17568] write(1, "registered\n", 11registered
) = 11
[pid 17568] gettimeofday({1292097412, 921865}, NULL) = 0
[pid 17568] clock_gettime(CLOCK_REALTIME, {1292097412, 921888446}) = 0
[pid 17568] futex(0xb7228ed4, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 17568] gettimeofday({1292097412, 921935}, NULL) = 0
[pid 17568] clock_gettime(CLOCK_REALTIME, {1292097412, 921956052}) = 0
...
[pid 17568] futex(0xb7228ed4, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 17568] gettimeofday({1292097412, 923784}, NULL) = 0
[pid 17568] clock_gettime(CLOCK_REALTIME, {1292097412, 923804532}) = 0
[pid 17568] futex(0xb7228f48, FUTEX_WAIT_PRIVATE, 65, {0, 581}) = -1 ETIMEDOUT (Connection timed out)
[pid 17568] futex(0xb7228ed4, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 17568] gettimeofday({1292097412, 923933}, NULL) = 0
[pid 17568] clock_gettime(CLOCK_REALTIME, {1292097412, 923953643}) = 0
[pid 17568] futex(0xb7228f48, FUTEX_WAIT_PRIVATE, 67, {0, 2582}) = -1 ETIMEDOUT (Connection timed out)
...
[pid 17568] futex(0xb7228ed4, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 17568] gettimeofday({1292097412, 934108}, NULL) = 0
[pid 17568] clock_gettime(CLOCK_REALTIME, {1292097412, 934127651}) = 0
[pid 17568] futex(0xb7228f48, FUTEX_WAIT_PRIVATE, 135, {0, 573697}) = -1 ETIMEDOUT (Connection timed out)
[pid 17568] futex(0xb7228ed4, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 17568] gettimeofday({1292097412, 934800}, NULL) = 0
[pid 17570] <... poll resumed> )        = 0 (Timeout)
[pid 17570] gettimeofday({1292097412, 989071}, NULL) = 0
[pid 17570] gettimeofday({1292097412, 989093}, NULL) = 0
[pid 17570] poll([{fd=3, events=POLLIN}, {fd=9, events=POLLIN}], 2, -1 <unfinished ...>
[pid 17568] clock_gettime(CLOCK_REALTIME, {1292097412, 989133116}) = 0
[pid 17568] futex(0xb7228ed4, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 17568] gettimeofday({1292097412, 989191}, NULL) = 0
[pid 17568] clock_gettime(CLOCK_REALTIME, {1292097412, 989211757}) = 0
[pid 17568] futex(0xb7228f48, FUTEX_WAIT_PRIVATE, 139, {0, 697194}) = -1 ETIMEDOUT (Connection timed out)
...
[pid 17568] futex(0xb7228ed4, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 17568] gettimeofday({1292097413, 255954}, NULL) = 0
[pid 17568] clock_gettime(CLOCK_REALTIME, {1292097413, 255977528}) = 0
[pid 17568] futex(0xb7228f48, FUTEX_WAIT_PRIVATE, 215, {0, 26830986}) = -1 ETIMEDOUT (Connection timed out)
[pid 17571]futex(0xa298288,futex_WAIT_PRIVATE,1,{499961668}
[pid 17568])=1([{fd=10,revents=POLLOUT}])
[pid 17568]getpeername(10,{sa_family=AF_INET,sin_port=htons(23120),sin_addr=INET_addr(“10.10.10.250”)},[16])=0
[pid 17568]fcntl64(10,F_设置,O_RDONLY)=0
[pid 17568]getsockname(10,{sa_family=AF_INET,sin_port=htons(37741),sin_addr=INET_addr(“10.10.10.204”)},[16])=0
[pid 17568]getpeername(10,{sa_family=AF_INET,sin_port=htons(23120),sin_addr=INET_addr(“10.10.10.250”)},[16])=0
[pid 17568]fcntl64(10,F_SETFD,FD_CLOEXEC)=0
[pid 17568]发送(10,“GIOP\1\1\0035\0\0\0\0\0-\0\0\0\0\0\0\24\1\17\0NUP\0\0\0\0\24\0”…,65,0)=65
[pid 17568]recv(10,
[pid 17570])=0(超时)
[pid 17570]gettimeofday({1292097412,746922},NULL)=0
[pid 17570]轮询([{fd=3,events=POLLIN},{fd=9,events=POLLIN}],2,0)=0(超时)
...
[pid 17570]gettimeofday({1292097412,747503},NULL)=0
[pid 17570]轮询([{fd=3,events=POLLIN},{fd=9,events=POLLIN}],2,0)=0(超时)
[pid 17570]gettimeofday({1292097412,747544},NULL)=0
[pid 17570]gettimeofday({1292097412,747563},NULL)=0
[pid 17570]轮询([{fd=3,events=POLLIN},{fd=9,events=POLLIN}],2,50
[pid 17568]“GIOP\1\1\0\4\0\0\0\10\0\0\0\2\0\0\0\0\1”,8192,0)=20
[pid 17568]发送(10,“GIOP\1\1\1\0z\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\1\0”…,134,0)=134
[pid 17568]recv(10,
[pid 17570])=0(超时)
[pid 17570]gettimeofday({12920974121797695},NULL)=0
[pid 17570]gettimeofday({12920974121797716},NULL)=0
[pid 17570]轮询([{fd=3,events=POLLIN},{fd=9,events=POLLIN}],2,50
[pid 17568]“GIOP\1\1\0\1\0\0\330\0\0\0\1\0\0\0\0\1\0\0\0\f\1\0\0\0\0\0\0\0\1\0”…,8192,0)=228
[pid 17568]写入(1,“已登录\n”,10已登录
) = 10
[pid 17568]发送(10,“GIOP\1\1\1\0u\0\0\0\0\0\0\0\6\0\0\0\0\1\0\0\0\0\0\0\24\1\17\0”…,129,0)=129
[pid 17568]recv(10,
[pid 17570])=0(超时)
[pid 17570]gettimeofday({1292097412,847848},NULL)=0
[pid 17570]gettimeofday({1292097412,847868},NULL)=0
[pid 17570]轮询([{fd=3,events=POLLIN},{fd=9,events=POLLIN}],2,50
[pid 17568]“GIOP\1\1\0\1\0\0\0\r\0\0\0\0\0\0\0\6\0\0\0\0\0\1”,8192,0)=25
[pid 17568]发送(10,“GIOP\1\1\1\0\t\1\0\0\0\0\0\10\0\0\0\0\1\0\0\0\0\0\0\0\0\24\1\17\0”…,277,0)=277
[pid 17568]recv(10,
[pid 17570])=0(超时)
[pid 17570]gettimeofday({12920974121898007},NULL)=0
[pid 17570]gettimeofday({12920974121898028},NULL)=0
[pid 17570]轮询([{fd=3,events=POLLIN},{fd=9,events=POLLIN}],2,50
[pid 17568]“GIOP\1\1\0\1\0\0\0\20\0\0\0\0\0\0\0\10\0\0\0\0\0\0\0\2I\360”,8192,0)=28
[pid 17568]写入(1,“150000\n”,7150000
)     = 7
[pid 17568]写入(1,“已注册”,11已注册
) = 11
[pid 17568]gettimeofday({12920974121921865},NULL)=0
[pid 17568]clock_gettime(clock_REALTIME,{12920974121921888446})=0
[pid 17568]futex(0xb7228ed4,futex_WAKE_PRIVATE,1)=0
[pid 17568]gettimeofday({12920974121935},NULL)=0
[pid 17568]clock_gettime(clock_REALTIME,{12920974112956052})=0
...
[pid 17568]futex(0xb7228ed4,futex_WAKE_PRIVATE,1)=0
[pid 17568]gettimeofday({12920974121923784},NULL)=0
[pid 17568]clock_gettime(clock_REALTIME,{12920974121923804532})=0
[pid 17568]futex(0xb7228f48,futex_WAIT_PRIVATE,65,{0581})=-1个以太网超时(连接超时)
[pid 17568]futex(0xb7228ed4,futex_WAKE_PRIVATE,1)=0
[pid 17568]gettimeofday({12920974121923933},NULL)=0
[pid 17568]clock_gettime(clock_REALTIME,{12920974121923953643})=0
[pid 17568]futex(0xb7228f48,futex_WAIT_PRIVATE,67,{0,2582})=-1个ETIMEDOUT(连接超时)
...
[pid 17568]futex(0xb7228ed4,futex_WAKE_PRIVATE,1)=0
[pid 17568]gettimeofday({12920974121934108},NULL)=0
[pid 17568]clock_gettime(clock_REALTIME,{12920974121934127651})=0
[pid 17568]futex(0xb7228f48,futex_WAIT_PRIVATE,135,{0,573697})=-1 ETIMEDOUT(连接超时)
[pid 17568]futex(0xb7228ed4,futex_WAKE_PRIVATE,1)=0
[pid 17568]gettimeofday({12920974121934800},NULL)=0
[pid 17570])=0(超时)
[pid 17570]gettimeofday({12920974121989071},NULL)=0
[pid 17570]gettimeofday({12920974121989093},NULL)=0
[pid 17570]轮询([{fd=3,events=POLLIN},{fd=9,events=POLLIN}],2,-1
[pid 17568]clock_gettime(clock_REALTIME,{12920974121989133116})=0
[pid 17568]futex(0xb7228ed4,futex_WAKE_PRIVATE,1)=0
[pid 17568]gettimeofday({12920974121989191},NULL)=0
[pid 17568]clock_gettime(clock_REALTIME,{12920974121989211757})=0
[pid 17568]futex(0xb7228f48,futex_WAIT_PRIVATE,139,{0,697194})=-1 ETIMEDOUT(连接超时)
...
[pid 17568]futex(0xb7228ed4,futex_WAKE_PRIVATE,1)=0
[pid 17568]gettimeofday({1292097413255954},NULL)=0
[pid 17568]clock_gettime(clock_REALTIME,{1292097413255977528})=0
[pid 17568]futex(0xb7228f48,futex_WAIT_PRIVATE,215,{026830986})=-1 ETIMEDOUT(连接超时)

我通过在防火墙脚本中添加以下行修复了此问题

 ip6tables -A INPUT -i lo -j ACCEPT

我最终发现,由于我在与服务器不同的子网中,ORB发布了错误的IP地址,无法找到返回我客户端的路径