shelf
shelf copied to clipboard
How to close a Stream?
I found some requests from DLNA devices never closed(We use shelf_static in DLNA(uPNP) serve video files)
Since we cannot change the devices and for security reason and avoide too many open files, I think we should close the Stream
by purpose.
So my question is: How to close the Stream
in server side?
Response(206, File.openRead(0, xxx))
Thanks