You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Patrik Beno <pa...@qbizm.com> on 2000/12/08 12:07:33 UTC
Diffs between 3.1 and 3.2
Hi people!
I have application which behaves differently in tomcat 3.1 and 3.2.
3.1: loads ok, first page is displayd correctly
3.2: Browser complains document contained no data; tomcat or my code
(don't know which of 'em) runs much longer - seems like looping
somewhere
I have to say this is application handled by one central servlet
written for jserv (servlet 2.0 implementation) -- we want to rewrite
it for 2.2/tomcat
initial request is something like:
localhost:8080/apps/example1/Start/Start
where apps is logical name of the servlet
I'm sorry if I did not provide enough info. but can you tell me what
has changed between 3.1 and 3.2 that could cause this ?
Thanks.
---- ----
patrik.beno@{qbizm.com|inmail.sk} ICQ#98931498
-- --
Patrik Beno Qbizm technologies, Inc.
developer ... the art of internet.
------------------------------------------------------------------------
Kralovopolska 139 tel: +420 5 4124 2414
601 12 Brno, CZ http://www.qbizm.com fax: +420 5 4121 2696
RE: Diffs between 3.1 and 3.2
Posted by Marc Saegesser <ma...@apropos.com>.
Ahhh, that explains it. I've been meaning to look into why my first request
takes so damned long.
I just added the following line of code to the init() method of one of load
on startup servlets and now my first requests goes through just fine.
new java.security.SecureRandom().nextLong();
Now, I realize this is something of a hack. Would it make sense to add
something to the session id generation code to initialize the rander number
generator when a Web Apps loads. If other developers think this is a
reasonable idea I'll post a patch.
-----Original Message-----
<snip>
One change that affects the first request to an app (more precisely, the
first
request that creates a session) is the way session ids are calculated.
Tomcat
3.2 now uses the java.security.SecureRandom class for this, which (on some
platforms) can take many seconds to initialize itself the very first time it
is
called.
Craig McClanahan
Re: Diffs between 3.1 and 3.2
Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Patrik Beno wrote:
> Hi people!
>
> I have application which behaves differently in tomcat 3.1 and 3.2.
>
> 3.1: loads ok, first page is displayd correctly
> 3.2: Browser complains document contained no data; tomcat or my code
> (don't know which of 'em) runs much longer - seems like looping
> somewhere
>
One change that affects the first request to an app (more precisely, the first
request that creates a session) is the way session ids are calculated. Tomcat
3.2 now uses the java.security.SecureRandom class for this, which (on some
platforms) can take many seconds to initialize itself the very first time it is
called.
Craig McClanahan