Title: Leaking connections when downloading content from OneDrive · Issue #284 · microsoftgraph/msgraph-sdk-java · GitHub
Open Graph Title: Leaking connections when downloading content from OneDrive · Issue #284 · microsoftgraph/msgraph-sdk-java
X Title: Leaking connections when downloading content from OneDrive · Issue #284 · microsoftgraph/msgraph-sdk-java
Description: Downloading content from OneDrive: try (InputStream req = graphClient.drives(driveId).items(docId).content().buildRequest().get()) { try (ByteArrayOutputStream result = new ByteArrayOutputStream()) { //Get the content and use it - all OK...
Open Graph Description: Downloading content from OneDrive: try (InputStream req = graphClient.drives(driveId).items(docId).content().buildRequest().get()) { try (ByteArrayOutputStream result = new ByteArrayOutputStream())...
X Description: Downloading content from OneDrive: try (InputStream req = graphClient.drives(driveId).items(docId).content().buildRequest().get()) { try (ByteArrayOutputStream result = new ByteArrayOutputStream())...
Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-java/issues/284
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Leaking connections when downloading content from OneDrive","articleBody":"Downloading content from OneDrive:\r\n```\r\n try (InputStream req = graphClient.drives(driveId).items(docId).content().buildRequest().get()) {\r\n try (ByteArrayOutputStream result = new ByteArrayOutputStream()) {\r\n//Get the content and use it - all OK\r\n }\r\n}\r\nThe input and output streams are in try-with-resource blocks and so are closed at the end of the call.\r\n\r\nIn the log I then get the message:\r\nOkHttpClient A connection to https://graph.microsoft.com/ was leaked. Did you forget to close a response body?\r\n```\r\n\r\n### Expected behavior\r\n\r\nCalling close on the input stream should release the connection? Or there should be some other way to close it.\r\n\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/PaulWoods4422","@type":"Person","name":"PaulWoods4422"},"datePublished":"2019-08-15T15:18:18Z","url":"https://github.com/microsoftgraph/msgraph-sdk-java/issues/284"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:198da2c2-b4a3-bfc8-b652-de9c67f2ed7e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B22C:226126:1911A61:21BB3DC:6B0547D7 |
| html-safe-nonce | ecff8941b571ef168198a8cc2de502ebc87b5673870e452212edd8078428024d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjJDOjIyNjEyNjoxOTExQTYxOjIxQkIzREM6NkIwNTQ3RDciLCJ2aXNpdG9yX2lkIjoiMTExNDUwNzg0NzE4NzkwODU2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0993d670c6892c11556332770b212ef3f270b53711e77dfae54b971247660f7c |
| hovercard-subject-tag | issue:481201502 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoftgraph/msgraph-sdk-java/284/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2b99ceb5616ac955aa08d08c02a8eda92846ae78cac74263a36990c41351d3a0/microsoftgraph/msgraph-sdk-java/issues/284 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2b99ceb5616ac955aa08d08c02a8eda92846ae78cac74263a36990c41351d3a0/microsoftgraph/msgraph-sdk-java/issues/284 |
| og:image:alt | Downloading content from OneDrive: try (InputStream req = graphClient.drives(driveId).items(docId).content().buildRequest().get()) { try (ByteArrayOutputStream result = new ByteArrayOutputStream())... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PaulWoods4422 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoftgraph/msgraph-sdk-java git https://github.com/microsoftgraph/msgraph-sdk-java.git |
| octolytics-dimension-user_id | 17304259 |
| octolytics-dimension-user_login | microsoftgraph |
| octolytics-dimension-repository_id | 103300409 |
| octolytics-dimension-repository_nwo | microsoftgraph/msgraph-sdk-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 103300409 |
| octolytics-dimension-repository_network_root_nwo | microsoftgraph/msgraph-sdk-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width