Title: Thread safety of the library? · Issue #435 · sendgrid/sendgrid-java · GitHub
Open Graph Title: Thread safety of the library? · Issue #435 · sendgrid/sendgrid-java
X Title: Thread safety of the library? · Issue #435 · sendgrid/sendgrid-java
Description: I see from #213 that the library is claimed to be thread safe. However, a few minute's inspection of the SendGrid class shows this is not true. All fields are not safely initialized, and therefore all usage of them is unsafe. Similarly, ...
Open Graph Description: I see from #213 that the library is claimed to be thread safe. However, a few minute's inspection of the SendGrid class shows this is not true. All fields are not safely initialized, and therefore ...
X Description: I see from #213 that the library is claimed to be thread safe. However, a few minute's inspection of the SendGrid class shows this is not true. All fields are not safely initialized, and theref...
Opengraph URL: https://github.com/sendgrid/sendgrid-java/issues/435
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Thread safety of the library?","articleBody":"I see from https://github.com/sendgrid/sendgrid-java/issues/213 that the library is claimed to be thread safe. However, a few minute's inspection of the `SendGrid` class shows this is not true. All fields are not safely initialized, and therefore all usage of them is unsafe. Similarly, the `requestHeaders` field is itself mutable and not thread safe. I stopped looking once I found that much, so there may well be more elsewhere. However, the class looks like it was intended to be reused, given that it launches a thread pool (which leaks threads -- there's no way to close the thread pool). \r\n\r\nAs a potential user of the library, what should I make of this? Is it intended that `SendGrid` should be thread safe?","author":{"url":"https://github.com/marshallpierce","@type":"Person","name":"marshallpierce"},"datePublished":"2018-05-14T20:13:36Z","url":"https://github.com/sendgrid/sendgrid-java/issues/435"}
| 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:9f96e6e8-0331-3ddc-ebb8-349d5588e647 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ACCC:C802B:58C7DF:77093B:6B06268E |
| html-safe-nonce | 3426a41b37ddaf74d6a8391e8dddee4dc6d4089d2498853ebaded3a01363572d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0NDOkM4MDJCOjU4QzdERjo3NzA5M0I6NkIwNjI2OEUiLCJ2aXNpdG9yX2lkIjoiNjYwMzk5NDI5MjQ4NzEzMTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a63246ec42f3eff2ce1b4f3caab56875871984ca7d0ae81a74a7ba9fcc9e6bd9 |
| hovercard-subject-tag | issue:322963685 |
| 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/sendgrid/sendgrid-java/435/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1b59d6828c2a8e57165ccc3d66b20ffd9b6caa19b0d496b2f6b07220b7f86c56/sendgrid/sendgrid-java/issues/435 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1b59d6828c2a8e57165ccc3d66b20ffd9b6caa19b0d496b2f6b07220b7f86c56/sendgrid/sendgrid-java/issues/435 |
| og:image:alt | I see from #213 that the library is claimed to be thread safe. However, a few minute's inspection of the SendGrid class shows this is not true. All fields are not safely initialized, and therefore ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | marshallpierce |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9e10bb0ecc0bd0f8692aa89586ee9b54e498d7ab9f244a44cdb5b93653a125ce |
| turbo-cache-control | no-preview |
| go-import | github.com/sendgrid/sendgrid-java git https://github.com/sendgrid/sendgrid-java.git |
| octolytics-dimension-user_id | 181234 |
| octolytics-dimension-user_login | sendgrid |
| octolytics-dimension-repository_id | 12328480 |
| octolytics-dimension-repository_nwo | sendgrid/sendgrid-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 12328480 |
| octolytics-dimension-repository_network_root_nwo | sendgrid/sendgrid-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 | 32e57d5cc2ce6ce92ec6dceb65858344750c27c2 |
| 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