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=2951188

Reply via email to