-
Notifications
You must be signed in to change notification settings - Fork 68
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
TCP transport not ThreadSafe #111
Comments
I believe I've also run into issues with this... I usually get the following exception, but I occasionally see others, including one about connecting to an already connected client. 2024-09-24T18:49:03.6418124Z Oops something going wrong System.AggregateException: One or more errors occurred. (An invalid argument was supplied.) |
Is there a simple workaround? I'd rather not have to create and maintain a custom fork of this project, but as it stands it is completely unusable for me. |
@inf9144 Thanks for the code. I have managed to get it working as a custom transport, but I'm not sure I configured the TransportFactory correctly... it seems a little janky. Here's what I have. Is there a neater solution?
|
Maybe we have the same problem: #115 |
Hey, the implementation of TCP Transport is not thread safe and you can get in situations where the stream is null while tcp client is connected. Also reconnecting does not follow a proper path. I switched to a custom ITransport implementation which solves thoses problems for me:
Are you open for PRs? I could try to integrate this into you original classes.
The text was updated successfully, but these errors were encountered: