/[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

revision 469 by torben, Mon Oct 26 12:34:25 2009 UTC revision 622 by torben, Mon Mar 8 09:01:35 2010 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.622

  ViewVC Help
Powered by ViewVC 1.1.20