Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Sockets handling

 
Magnus Andersson
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic