Hi!
I am using the HttpURLConnection
("<artifactId>org.restlet.ext.net</artifactId>") with SSL requests.
Since 2.0-RC2 (and 2.0-SNAPSHOT at 14.4.2010) the keep-alive does not
work anymore. In 2.0-RC1 it was woking correctly.
It can be seen in the debug output (ssl handshake for every request) and
in "netstat".
Test case:
@Test
public void testKeepAlive() throws Exception {
System.setProperty("javax.net.debug", "ssl:record");
for (int i = 0; i < 5; i++) {
ClientResource clientResource = new ClientResource(
"https://www.amazon.com/");
Representation representation =
clientResource.get();
String text = representation.getText();
// System.out.print(text);
}
}
----
<dependency>
<groupId>org.restlet.jee</groupId>
<artifactId>org.restlet</artifactId>
</dependency>
<dependency>
<groupId>org.restlet.jee</groupId>
<artifactId>org.restlet.ext.net</artifactId>
</dependency>
---
Please let me know, if you need further information for this test case.
Thank you,
Klaus
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2583387