Reputation: 1032
I have searched and found that the general consensus is that using the 1.1 keep-alive for an indefinate period of time is not proper use of the 1.1 keepalive type of connection. We are tunneling through a proxy and wish to maintain this socket for a long time (forever if possible).
Putting aside that it may be not proper, is there some generally accepted maximum length of time?
The client side and server side software is custom so there is no issue there. We already have client with permanent persistent sockets. We are trying to overcome tunneling through a proxy which he have no access to using HTTP.
Thanks
Upvotes: 0
Views: 1398
Reputation: 7449
Most browsers use less that two minutes, chrome being an exception with 5 minutes.
I thing you should go with something similar to what browsers are using. I don't think there is a single recommended maximum timeout.
This Stackoverflow post also might be usefull.
Upvotes: 1