tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/jasper/servlet JspServlet.java
Date Tue, 02 Oct 2001 21:53:10 GMT
bojan       01/10/02 14:53:10

  Modified:    src/share/org/apache/jasper/servlet JspServlet.java
  Log:
  SingleThreadModel fix from Mats Löfkvist
  
  Revision  Changes    Path
  1.11      +7 -1      jakarta-tomcat/src/share/org/apache/jasper/servlet/JspServlet.java
  
  Index: JspServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/servlet/JspServlet.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- JspServlet.java	2001/06/11 20:34:46	1.10
  +++ JspServlet.java	2001/10/02 21:53:10	1.11
  @@ -129,7 +129,13 @@
           {
               try{
                   incrementCount();
  -                servlet.service(req, res);
  +                if(servlet instanceof SingleThreadModel){
  +                    synchronized(servlet){
  +                        servlet.service(req, res);
  +                    }
  +                } else {
  +                    servlet.service(req, res);
  +                }
               }catch(NullPointerException e){
                   throw new JasperException(e);
               }finally{
  
  
  

Mime
View raw message