You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/05/21 04:18:04 UTC

[Bug 459] - req.getInputStream() causes req.getParameterNames() to hang 60-80 seconds. BugRat Report#783

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=459

*** shadow/459	Sun May 20 17:20:28 2001
--- shadow/459.tmp.23955	Sun May 20 19:18:04 2001
***************
*** 1,18 ****
! Bug#: 459
! Product: SAPI
! Version: 4.0.b1
! Platform: 
! OS/Version: 
! Status: NEW   
! Resolution: 
! Severity: Normal
! Priority: High
! Component: 
! AssignedTo: tomcat-dev@jakarta.apache.org                            
! ReportedBy: tim_tye@usa.net               
! URL: 
! Cc: 
! Summary: req.getInputStream()  causes req.getParameterNames() to hang 60-80 seconds. BugRat Report#783
! 
  I have written a simple servlet to test Unicode input encoding.  It will alternatly read the servlet request input stream and decode the stream into parameters, then use getParameterNames() and getParameterValues() to read the parameters.  The two methods should return the same string.  (They do not).  
! In my first testing against Catalina 4.0.b1 I notice extremely long response time, and the jvm associated with the servlet is spinning in execute state for up to 3 minutes whenever I read the servlet input stream before getting the parameter names and values.  When I read the parameter names and values, the jvm executes a normal amount of time.
--- 1,18 ----
! +============================================================================+
! | req.getInputStream()  causes req.getParameterNames() to hang 60-80 seconds |
! +----------------------------------------------------------------------------+
! |        Bug #: 459                         Product: Tomcat 3                |
! |       Status: UNCONFIRMED                 Version: Unknown                 |
! |   Resolution:                            Platform: All                     |
! |     Severity: Normal                   OS/Version: All                     |
! |     Priority: High                      Component: Unknown                 |
! +----------------------------------------------------------------------------+
! |  Assigned To: Larry.Isaacs@sas.com                                         |
! |  Reported By: tim_tye@usa.net                                              |
! |      CC list: Cc:                                                          |
! +----------------------------------------------------------------------------+
! |          URL:                                                              |
! +============================================================================+
! |                              DESCRIPTION                                   |
  I have written a simple servlet to test Unicode input encoding.  It will alternatly read the servlet request input stream and decode the stream into parameters, then use getParameterNames() and getParameterValues() to read the parameters.  The two methods should return the same string.  (They do not).  
! In my first testing against Catalina 4.0.b1 I notice extremely long response time, and the jvm associated with the servlet is spinning in execute state for up to 3 minutes whenever I read the servlet input stream before getting the parameter names and values.  When I read the parameter names and values, the jvm executes a normal amount of time.