Hessian 有暂停吗?
Hessian协议有超时吗?
注意:我没有使用 Hessian4J。相反,我使用 Spring 导出 Hessian 服务,并使用我自己的代码来处理 Hessian 请求。
Does the Hessian protocol have a timeout?
Note: I am not using Hessian4J. Instead, I am using Spring for exporting the Hessian services and my own code for handling Hessian request.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Caucho 的网站已关闭(像往常),因此我无法查看官方 Java 实现的文档,但是 PHP 库的此页面 指出:
因为它是基于 HTTP 的,所以即使二进制协议本身没有超时的概念,在某些地方也会出现超时的情况。这意味着如果连接花费的时间太长,远程服务器可能会决定终止连接,或者本地客户端也可能会这样做。改变这个取决于双方的配置。
我终于能够检查规范,并没有发现任何明确提及超时的内容。
Caucho's site is down (as usual) so I can't check the official Java implementation's documentation, but this page for a PHP library states:
Because it's HTTP-based, there are a few places where timeouts will come in to play even if the binary protocol itself doesn't have the concept of a timeout. This means that the remote server may decide to terminate the connection if it's taking too long, or the local client may do the same. Changing this depends on configurations on both sides.
I was finally able to check the specs, and found nothing mentioning timeouts expressly.