You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2002/03/13 12:03:37 UTC

cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/pipeline CachingStreamPipeline.java

cziegeler    02/03/13 03:03:37

  Modified:    src/java/org/apache/cocoon/components/pipeline
                        CachingStreamPipeline.java
  Log:
  Searching for 'aborted' for connection to reset by peer exception, too
  
  Revision  Changes    Path
  1.8       +5 -4      xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/CachingStreamPipeline.java
  
  Index: CachingStreamPipeline.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/CachingStreamPipeline.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- CachingStreamPipeline.java	22 Feb 2002 07:00:11 -0000	1.7
  +++ CachingStreamPipeline.java	13 Mar 2002 11:03:37 -0000	1.8
  @@ -84,7 +84,7 @@
    *  </ul>
    *
    * @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
  - * @version CVS $Id: CachingStreamPipeline.java,v 1.7 2002/02/22 07:00:11 cziegeler Exp $
  + * @version CVS $Id: CachingStreamPipeline.java,v 1.8 2002/03/13 11:03:37 cziegeler Exp $
    */
   public class CachingStreamPipeline extends AbstractStreamPipeline {
   
  @@ -259,10 +259,11 @@
                   }
               }
           } catch ( SocketException se ) {
  -            if (se.getMessage().indexOf("reset") > 0) {
  +            if (se.getMessage().indexOf("reset") > 0
  +                || se.getMessage().indexOf("aborted") > 0) {
                   throw new ConnectionResetException("Connection reset by peer", se);
               } else {
  -                getLogger().debug("IOException in ProcessReader", se);
  +                getLogger().debug("SocketException in ProcessReader", se);
   
                   throw new ProcessingException(
                       "Failed to execute pipeline.",
  @@ -272,7 +273,7 @@
           } catch ( ProcessingException e ) {
               throw e;
           } catch ( Exception e ) {
  -            getLogger().debug("IOException in ProcessReader", e);
  +            getLogger().debug("Exception in ProcessReader", e);
   
               throw new ProcessingException(
                   "Failed to execute pipeline.",
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org