axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis Message.java
Date Mon, 30 May 2005 17:23:31 GMT
dims        2005/05/30 10:23:31

  Modified:    java/src/org/apache/axis Message.java
  Log:
  Fix for AXIS-1997 - Regression causing out-of-memory errors for services without attachments
returning large response messages
  from Jason Sweeney
  
  Revision  Changes    Path
  1.119     +6 -1      ws-axis/java/src/org/apache/axis/Message.java
  
  Index: Message.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/Message.java,v
  retrieving revision 1.118
  retrieving revision 1.119
  diff -u -r1.118 -r1.119
  --- Message.java	10 Feb 2005 15:36:06 -0000	1.118
  +++ Message.java	30 May 2005 17:23:31 -0000	1.119
  @@ -472,7 +472,12 @@
               ret = HTTPConstants.HEADER_ACCEPT_APPL_SOAP +"; charset=" + encoding;
           }
   
  -        if (mAttachments != null && 0 != mAttachments.getAttachmentCount()) {
  +        int sendType = Attachments.SEND_TYPE_NOTSET;
  +        if ((msgContext != null) && (msgContext.getService() != null)) {
  +            sendType = msgContext.getService().getSendType();
  +        }
  +        if (sendType != Attachments.SEND_TYPE_NONE && mAttachments != null &&
  +                0 != mAttachments.getAttachmentCount()) {
               ret = mAttachments.getContentType();
           }
           return ret;
  
  
  

Mime
View raw message