简体   繁体   English

Phantasia4(Java客户端和C服务器)套接字超时

[英]Phantasia4 (Java client & C server) socket timing out

There's an old codebase that uses a server in C and client in Java. 有一个旧的代码库,它使用C语言中的服务器和Java中的客户端。 The source is here: mudbytes.net/file-890 来源在这里:mudbytes.net/file-890

It used to work just fine years ago, but the socket is now timing out when the two try to communicate. 几年前它曾经工作得很好,但是当两者尝试通信时,套接字现在超时了。 Is there some sort of new Java policy that silently blocks communication if there is no cert or the sort? 如果没有证书或某种分类,是否有某种新的Java策略会默默地阻止通信?

[EDIT] Works on http://www.phantasia4.org which is a Slackware machine. [编辑]可在http://www.phantasia4.org(这是一台Slackware机器)上工作。 But not CentOS. 但不是CentOS。

Is there some sort of new Java policy that silently blocks communication if there is no cert or the sort? 如果没有证书或某种分类,是否有某种新的Java策略会默默地阻止通信?

No. 没有。

There might be some such restriction on the server containers / machines / networks, but you've given us insufficient information to determine if this is a realistic possibility. 服务器容器/机器/网络可能受到一些限制,但是您给我们的信息不足,无法确定这是否现实。

Hmm, networks tend to change over the years. 嗯,网络多年来一直在变化。 There could be numerous reasons - from target changing the IP address or just falling off the face of the Internet to ISP blocking given port to aliens redirecting your traffic to a black /dev/null . 可能有多种原因-从目标更改IP地址或从Internet掉线到ISP阻止给定端口的端口到外星人,将您的流量重定向到黑色/dev/null It's all in the details you didn't give. 全部都是您未提供的细节。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM