Closed Bug 1683160 Opened 5 years ago Closed 5 years ago

docs should mention to close the stream in WebResponse

Categories

(GeckoView :: General, defect, P3)

Unspecified
All
defect

Tracking

(firefox86 fixed)

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: agi, Assigned: owlish)

Details

(Whiteboard: [geckoview:m86])

Attachments

(1 file)

the InputStream body field in WebResponse needs to be closed whenever the app is done with it, even when the body is ignored, otherwise the connection won't be closed until the GC comes around, which might take a while.

Pushed by istorozhko@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/76d55ec22ef4 Add a note on WebResponse.body to documentation r=geckoview-reviewers,agi
Whiteboard: [geckoview:m86]
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: