Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Commit

Permalink
Nachtrag zu Ticket #33 bei Github
Browse files Browse the repository at this point in the history
  • Loading branch information
willuhn committed Dec 17, 2014
1 parent ecddf75 commit 91feafc
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/org/kapott/hbci/comm/CommPinTan.java
Expand Up @@ -54,8 +54,15 @@ public final class CommPinTan
// nicht verifiziert werden sollen
private HostnameVerifier myHostnameVerifier;

// Timeout for HTTP connect and read operations in milliseconds
private final static int HTTP_TIMEOUT = 60000;
/**
* Timeout fuer HTTP connect in Millisekunden.
*/
private final static int HTTP_CONNECT_TIMEOUT = 60 * 1000;

/**
* Timeout fuer HTTP Read in Millisekunden.
*/
private final static int HTTP_READ_TIMEOUT = 5 * HTTP_CONNECT_TIMEOUT;


public CommPinTan(HBCIPassportInternal parentPassport)
Expand Down Expand Up @@ -112,8 +119,8 @@ protected void ping(MSG msg)

HBCIUtils.log("connecting to server",HBCIUtils.LOG_DEBUG);
conn=(HttpURLConnection)url.openConnection();
conn.setConnectTimeout(HTTP_TIMEOUT);
conn.setReadTimeout(HTTP_TIMEOUT);
conn.setConnectTimeout(HTTP_CONNECT_TIMEOUT);
conn.setReadTimeout(HTTP_READ_TIMEOUT);

boolean checkCert=((AbstractPinTanPassport)getParentPassport()).getCheckCert();
boolean debugging=((PinTanSSLSocketFactory)this.mySocketFactory).debug();
Expand Down

0 comments on commit 91feafc

Please sign in to comment.