Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread safety of the library? #435

Open
marshallpierce opened this issue May 14, 2018 · 6 comments
Open

Thread safety of the library? #435

marshallpierce opened this issue May 14, 2018 · 6 comments
Labels
status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap

Comments

@marshallpierce
Copy link

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, 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).

As a potential user of the library, what should I make of this? Is it intended that SendGrid should be thread safe?

@thinkingserious thinkingserious added type: community enhancement feature request not on Twilio's roadmap status: help wanted requesting help from the community difficulty: medium fix is medium in difficulty up-for-grabs labels May 15, 2018
@thinkingserious
Copy link
Contributor

Hello @marshallpierce,

Those are some great observations! Thanks for taking the time to detail your findings. I've added this issue to our backlog for further investigation.

If you like, we welcome and encourage PRs :)

With Best Regards,

Elmer

@CNunezEng
Copy link

Is this issue still open? I would like to help out.

@MarcusBiel
Copy link

Haha over 2 years and this is still open. I am looking for better alternatives then SendGrid! :)

@marshallpierce
Copy link
Author

I just wrote my own client since this library is clearly abandonware

@harishajdarevic
Copy link

Hi,,

any updates on this?

@thinkingserious
Copy link
Contributor

Hello @harishajdarevic,

No updates just yet, but since you have commented here, we will reopen and add to our internal backlog. Additional comments and +1s will help this issue move up our backlog. Thank you!!

With best regards,

Elmer

@thinkingserious thinkingserious added type: question question directed at the library and removed difficulty: medium fix is medium in difficulty help wanted type: community enhancement feature request not on Twilio's roadmap labels Mar 22, 2021
@thinkingserious thinkingserious added type: community enhancement feature request not on Twilio's roadmap help wanted and removed type: question question directed at the library labels Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap
Projects
None yet
Development

No branches or pull requests

6 participants