Hi Jerome, > Hi Sean, > > I would have expected the other behavior as the JDK keeps HTTP connections > alive by default. There is a system property to change this behavior, you > may want to play with it and see what happen: "http.keepAlive (default: > true)" > http://java.sun.com/j2se/1.5.0/docs/guide/net/properties.html > > In this other document they have an interesting paragraph: > http://java.sun.com/j2se/1.5.0/docs/guide/net/http-keepalive.html
Thanks, I will check these out. > "What makes a connection reusable? ... This sounds like voodoo :-( I don't want to have to step all the way down to socket level or some such. > > So, you may want to ensure that all your request entities (representations) > have their "size" property precisely set. Also, feel free to have a look at > the implementation classes (just two) to see if our usage of > HttpURLConnection could be improved. So if I can stay within the confines of the Restlet world and still get connection reuse, that would be great. I'll play with it and report back what I find. Regards, Sean

