File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat Sockets handling Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Tomcat Sockets handling" Watch "Tomcat Sockets handling" New topic
Author

Tomcat Sockets handling

Magnus Andersson
Greenhorn

Joined: Mar 03, 2004
Posts: 9
Hi,
I am using a load generator sending requests towards tomcat. I try to re-use the same socket as long as possible, but after 100 requests / responsen, the Tomcat server sends a "Connection: close" in the Http-response, which forces my client to open a new socket.
How do I configure tomcat to just keep a connection alive and not close it? Which property is it ?
Can this be done from source code using a setProperty() method in my embedded tomcat ?
Magnus
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Tomcat Sockets handling
 
Similar Threads
tomcat 5.5 connector
Socket Programing
Two network cards on linux
Problems in isBound() and isClosed() methods in the Socket class
Tomcat