Apache CXF中的Keep-Alive超时

时间:2016-09-15 07:25:33

标签: java web-services apache-camel cxf httpurlconnection

我正在使用Apache CXF 3.0.6和Java 8

我知道CXF依赖于HttpURLConnection - http://java.sun.com/javase/6/docs/technotes/guides/net/http-keepalive.html

我想在CXF端点上实现http连接持久化,所以我定义了系统属性http.maxConnections = 20,并且keep-alive为true,

max connection按预期工作,保持活动状态,但保持活动时间在5秒内完成,然后创建新套接字以提供另一个请求。

有没有办法增加保持活动超时,还是有办法设置 MaxKeepAliveRequests ,以便套接字在此超时期间保持ESTABLISHED服务请求?< / p>

因为HttpURLConnection没有任何设置保持活动超时的方法!

0 个答案:

没有答案