shelf icon indicating copy to clipboard operation
shelf copied to clipboard

How to close a Stream?

Open pedia opened this issue 1 year ago • 2 comments

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

pedia avatar Dec 22 '23 10:12 pedia