Hi Eugeny, When you removed the Simple HTTP server, you probably falled-back on the Restlet internal HTTP server which doesn't preemptively close such connections.
In Restlet 1.2, we'll upgrade to Simple 5 which may improve this behavior. Best regards, Jerome Louvel -- Noelios Technologies http://www.noelios.com tel / fax : +33 1 47 57 30 53 mob : +33 6 85 14 21 12 -----Message d'origine----- De : Eugeny N Dzhurinsky [mailto:[email protected]] Envoye : dimanche 4 janvier 2009 13:35 A : [email protected] Objet : Re: restlet 1.1.1, Spring and issue with loosing a connection On Sun, Jan 04, 2009 at 01:58:53AM +0200, Eugeny N Dzhurinsky wrote: > Hello! > > Everything looks good and the server is starting up well, I am able to connect > to the server and invoke the REST requests and they are working fine from the > Java client. > > But I've found if I connect to the server using telnet like this: > > #> telnet localhost 3000 > > the connection is being closed after 1 or 2 seconds. Looks like there is some > timeout for reading from a socket? I tried to debug the code and currently I > guess the problem is somewhere in the simple.http.connect.Connection class > from org.simpleframework.simple package. This package seems to be the > dependency of the com.noelios.restlet.ext.simple package. Okay, I found the solution, may be that will help somebody - I removed the dependency of com.noelios.restlet.ext.simple from my project and everything works fine now - the connection is not closed even on slow links and requests are handled properly. Weird :) -- Eugene Dzhurinsky ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1002878 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1002968

