-
Notifications
You must be signed in to change notification settings - Fork 53
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
IOError: stream closed in another thread #135
Comments
Thanks for letting us know and sorry about the inconvenience. Your analysis looks correct at first glance - an IO exception under those circumstances isn't really an error and shouldn't be logged. The fix is probably what you suggested, and we should be able to put out a patch shortly. I'm not sure why we haven't seen this happen all the time. It could be timing-dependent, or it could also be that some versions of the Ruby runtime will throw |
Sorry we didn't get to this sooner. This has been fixed in v1.0.1 of the launchdarkly-eventsource package, which is in the new 5.5.8 release of the LaunchDarkly Ruby SDK. |
…heck remove install-time openssl check that breaks if you don't have rake
Describe the bug
IOError when closing client after successfully initializing it.
To reproduce
Execute the following script.
Expected behavior
Client should close without errors.
Actual behaviour
Logs
SDK version
Language version, developer tools
Ruby 2.6.3
OS/platform
macOS Mojave
Additional context
In production we actually call close as follows:
But the result is the exact same.
We believe the bug is in https://github.com/launchdarkly/ruby-eventsource also maintained by this organization and could be patched like the following but we are not sure if this is the correct solution:
https://github.com/launchdarkly/ruby-eventsource/blob/5e7c613f09f0976b374316a8cd911b59184da572/lib/ld-eventsource/client.rb#L180-L202
Thanks for taking the time to look into this issue, we appreciate it. 🙏
The text was updated successfully, but these errors were encountered: