You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlrpc-dev@ws.apache.org by jo...@apache.org on 2002/02/20 19:06:04 UTC

cvs commit: xml-rpc/src/java/org/apache/xmlrpc XmlRpcClient.java

jon         02/02/20 10:06:04

  Modified:    src/java/org/apache/xmlrpc XmlRpcClient.java
  Log:
  close the outputstream.
  
  Rick Johnston <RR...@symantec.com>
  
  Revision  Changes    Path
  1.8       +3 -1      xml-rpc/src/java/org/apache/xmlrpc/XmlRpcClient.java
  
  Index: XmlRpcClient.java
  ===================================================================
  RCS file: /home/cvs/xml-rpc/src/java/org/apache/xmlrpc/XmlRpcClient.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- XmlRpcClient.java	19 Feb 2002 02:25:01 -0000	1.7
  +++ XmlRpcClient.java	20 Feb 2002 18:06:04 -0000	1.8
  @@ -354,7 +354,7 @@
   
                   now = System.currentTimeMillis();
               }
  -            
  +
               try
               {
                   ByteArrayOutputStream bout = new ByteArrayOutputStream();
  @@ -388,6 +388,7 @@
                   OutputStream out = con.getOutputStream();
                   out.write(request);
                   out.flush();
  +                out.close();
                   InputStream in = con.getInputStream();
                   parse(in);
               }
  @@ -399,6 +400,7 @@
                   }
                   throw new IOException(x.getMessage());
               }
  +
               if (fault)
               {
                   // generate an XmlRpcException