如何定义 Axis2c 客户端应使用多少 HTTP 连接?
我有一个服务器和客户端,它们与 Soap 请求进行通信。客户端是一个 C++ 应用程序,使用 Axis2c 1.6.0。
在轴选项中,默认 HTTP 超时为 30 秒。但是,我需要每 3 秒发送一次请求,这会在服务器上生成过多的 HTTP 连接。
有 40 多个已打开且“正在等待”的 HTTP 连接,只有一个“已连接”。
我怎样才能减少这些?我可以以某种方式告诉 axis2c 重用连接吗?或者换句话说,如果在超时之前收到响应,为什么该连接保持打开状态 30 秒?
I have a server and client, which communicate with Soap requests. The client is a C++ application, using Axis2c 1.6.0.
In the axis options the default HTTP timeout is 30 sec. However, I need to send request every 3 seconds and this generates too much HTTP connections on the server.
There are 40+ HTTP connections opened and "Waiting" and just one "Connected".
How can I reduce those? Can I somehow tell axis2c to reuse connections? Or in other words, if the response is received before the timeout, why this connections stays open for 30 seconds??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论