mirror of
https://github.com/moparisthebest/davmail
synced 2025-02-28 17:31:52 -05:00
workaround for TLS Renegotiation issue, see http://java.sun.com/javase/javaseforbusiness/docs/TLSReadme.html
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1409 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
f19b40118c
commit
56d0e7adfe
@ -66,11 +66,12 @@ public final class DavGatewayHttpClientFacade {
|
||||
private static IdleConnectionTimeoutThread httpConnectionManagerThread;
|
||||
|
||||
static {
|
||||
// workaround for TLS Renegotiation issue see http://java.sun.com/javase/javaseforbusiness/docs/TLSReadme.html
|
||||
System.setProperty("sun.security.ssl.allowUnsafeRenegotiation", "true");
|
||||
|
||||
DavGatewayHttpClientFacade.start();
|
||||
}
|
||||
|
||||
// register custom cookie policy
|
||||
static {
|
||||
CookiePolicy.registerCookieSpec("DavMailCookieSpec", DavMailCookieSpec.class);
|
||||
}
|
||||
|
||||
@ -321,8 +322,6 @@ public final class DavGatewayHttpClientFacade {
|
||||
addNTLM(httpClient);
|
||||
status = httpClient.executeMethod(method);
|
||||
}
|
||||
} catch (IOException e) {
|
||||
throw e;
|
||||
} finally {
|
||||
method.releaseConnection();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user