Stream timeout?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Didde_Brockman
Posted On:   Wednesday, January 23, 2002 11:06 AM

I am writing a small commandline java app to loadtest my server.

To accomplish this I create a URL and then open it using the openStream() method..



The problem is that the server I am running it against hosts a lot of heavy applications so the response time is really really high which means that my openStream() times out..



Is it possible to change the time out level in some way?



Thanks!

Re: Stream timeout?

Posted By:   Krzysztof_Raciniewski  
Posted On:   Thursday, January 24, 2002 08:11 AM

If you are using 1.4 Java you can set the

sun.net.client.defaultConnectTimeout
or
sun.net.client.defaultReadTimeout
.
Otherwise you can use
http classes from Jakarta
or write your own classes for URL connections.
About | Sitemap | Contact