-
Notifications
You must be signed in to change notification settings - Fork 84
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
UnsolicitedResponse isn't Send #254
Comments
Are you sure?
|
Huh, that's very weird indeed. In that case I don't know what was causing #250. There, @soywod claimed that |
Here the error I get:
When I said "not thread-safe" I meant not |
Note that |
Fixing the sender on the other hand would be possible with https://doc.rust-lang.org/std/sync/mpsc/fn.sync_channel.html however the same error would appear for the Receiver then |
Hmm, as I understand the code the Your thoughts @jonhoo? I'd be happy to write a PR for that change if you agree that it makes sense. |
That would also enable the multi-threaded access patterns that I think
@soywod wants to work with.
I am really interested in this solution, because the actual
implementation I have (using a connection pool) seems to suffer from
perfs and mutex lock issues.
I'd be happy to write a PR for that change if you agree that it makes
sense.
Please let me know if I can do anything to help also!
|
Ah, so the concern is actually that the client isn't |
I initiated a PR, please let me know if it resembles what you had in mind. |
With the PR, I do not have anymore the |
Ah, yes, so, that's sort of fundamental to the IMAP protocol. It doesn't allow for multiple concurrent requests. So you'd need to either use a |
As reported in #250, the
UnsolicitedResponse
type isn'tSend
, but it should be. We should fix that.The text was updated successfully, but these errors were encountered: