This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat Sockets handling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Sockets handling" Watch "Tomcat Sockets handling" New topic

Tomcat Sockets handling

Magnus Andersson

Joined: Mar 03, 2004
Posts: 9
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 ?
I agree. Here's the link:
subject: Tomcat Sockets handling
jQuery in Action, 3rd edition