• Post Reply Bookmark Topic Watch Topic
  • New Topic

Basic - Jetty thread timeout(setMaxInactiveInterval) not working?

 
Anish Shah
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this very basic program. I am able to successfully set MaxInactiveInterval to whatever seconds i want. But my jetty thread never times out and client keeps waiting for server to respond. Any ideas ??

Jetty Version: 6.1.22

OutPut:
Previous MaxInactiveInterval: -1
Modified MaxInactiveInterval: 41




Thank you...
 
Anish Shah
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bump....
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
This is only a guess, but since you are not getting any replies, I thought I'd make a guess at least.
For sockets in Java, there is a connection timeout, in addition to the SO timeout.
This timeout can be set only(?) when invoking the Socket.connect(SocketAddress endpoint, int timeout) method.
In order to set this timeout, you may have to write your own socket factory.
Best wishes!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the following:

But my jetty thread never times out and client keeps waiting for server to respond. Any ideas ??


what is this "jetty thread" you are expecting to time out?

What is the directory structure you are expecting Jetty to be using for HTML pages and where does Jetty get told where to look?

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!