Hi Arjohn, Thanks for reporting this issue. It is now fixed in both 2.1 and master branches.
Best regards, Jerome -- http://www.restlet.com http://twitter.com/#!/jlouvel -----Message d'origine----- De : Arjohn Kampman [mailto:[email protected]] Envoyé : lundi 23 avril 2012 16:50 À : [email protected] Objet : Nio connector doesn't close streams/channels Hi all, There appears to be a bug in the intella http server in restlet 2.1-rc4. InputStream's returned by server resource aren't closed by the this server, but they are closed when using Jetty. I've debugged the issue to OutboundWay.writeLine(). This method gets the input stream and wraps it in a nio-channel implementation (line 565). This channel is stored in the entityChannel attribute, but subsequently never closed. The server does call release() on the InputRepresentation in OutboundWay.onCompleted(), but that doesn't close the stream anymore since that has been null-ed when the stream was retrieved. Probably, this method should also call entityChannel.close()? Regards, Arjohn Kampman ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=29511 88 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2956350

