/[projects]/miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/invocations/UrlInvocation.java
ViewVC logotype

Diff of /miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/invocations/UrlInvocation.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

CircuitBreaker/src/dk/thoerup/circuitbreaker/invocations/UrlInvocation.java revision 469 by torben, Mon Oct 26 12:34:25 2009 UTC miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/invocations/UrlInvocation.java revision 2449 by torben, Fri Mar 20 08:58:46 2015 UTC
# Line 26  public class UrlInvocation implements Ci Line 26  public class UrlInvocation implements Ci
26                  con.setConnectTimeout( timeout );                  con.setConnectTimeout( timeout );
27                  InputStream is = con.getInputStream();                  InputStream is = con.getInputStream();
28                  ByteArrayOutputStream os = new ByteArrayOutputStream();                  ByteArrayOutputStream os = new ByteArrayOutputStream();
29                  byte[] message = new byte[1024];                  byte[] message = new byte[8192];
30                  int readBytes = 0;;                  int readBytes = 0;;
31                  while ((readBytes = is.read(message)) != -1) {                  while ((readBytes = is.read(message)) != -1) {
32                          os.write(message, 0, readBytes);                          os.write(message, 0, readBytes);

Legend:
Removed from v.469  
changed lines
  Added in v.2449

  ViewVC Help
Powered by ViewVC 1.1.20