共置时 TAO 出现死锁

发布于 2024-09-16 09:18:54 字数 235 浏览 13 评论 0原文

我有一个 CORBA 服务器,它从仆人中创建的通知线程对另一个服务器进行双向调用。这通常工作得很好。我刚刚将服务器修改为与其客户端位于同一位置(两者都是主机应用程序中的 DLL),现在它在等待回复时陷入死锁。有问题的调用是对并置服务器外部的调用(实际上是对命名服务的调用)。我正在使用带有默认策略的 TAO 1.6。

该问题似乎与领导者-跟随者的实现有关;它正在阻塞等待现有的领导者,而当它工作时却没有领导者。

谢谢 皮特.

I have a CORBA server that makes a twoway call to another server from a notification thread that is created in the servant. This works fine normally. I have just modified the server to be co-located with its client (both are DLLs in a host app), and now it deadlocks waiting for the reply. The offending call is to outside the colocated servers (to the naming service in fact). I am using TAO 1.6 with default policies.

The problem appears to be related to the leader-follower implementation; it is blocking waiting for the existing leader, whereas when it works there is no leader.

Thanks
Pete.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

泅渡 2024-09-23 09:18:54

For the record, I got round it by using thread-per-connection configuration, following the advice here http://www.theaceorb.com/faq/index.html#configure_tpc and putting the optoins in a service configuration file as described here http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/TAO/docs/Options.html#SVC (what that doesn't make entirely clear is that all you need is a file called svc.conf in the working directory). Not surprisingly, all those options are necessary to fix the problem I had.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文