-
Notifications
You must be signed in to change notification settings - Fork 23
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
Simple sync #148
Simple sync #148
Conversation
I tested this with the grapesy test suite and it is resulting in some unexpected exceptions in one of our tests and causing another test to hang. I might be able to look into this a little deeper tomorrow! |
@kazu-yamamoto FYI, it is unlikely that @FinleyMcIlwaine will have a chance to look at this again, as he is unfortunately no longer working with us on the |
@edsko Could you run the same test by yourself? |
Yes I can :) I can confirm that our test suite does not pass with this PR (using As per your request, I didn't try to understand the details of this PR, but I did run this with wireshark. One of the simplest tests in our test suite is a client that waits to receive a message from the server, but then cancels the request (using but with this PR there is an additional So something to do with the interpretation of |
I think that |
I made a mistake. What I would like to know is where |
Ah, yes, I could have thought of including that myself, sorry :) The message is |
Sorry but I don't understand this at all. |
I can try to dig deeper into the details of the PR if you like? |
Yes, please. |
Ok, I will try to find time for this next week. |
The Wireshark thing is a red-herring. I don't yet know what's causing the trouble. I will continue digging and let you know. |
@kazu-yamamoto Ok, this was a bit of a head-scratcher, but once I realized what the problem was, I was able to fix the issue our side (well-typed/grapesy#256); so I'm okay with this PR as-is (tested against The problem we were having was that you made |
@edsko Thanks. Unfortunately, CI tells me there is a bug. |
FWIW, CI was green prior to your most recent commit. Not sure what conclusion to derive from that though :) |
The last commit is not related since it is a fix of comment. |
7f040e3
to
3b829f1
Compare
I divided the hot commit into two:
If we run |
So, this is a very strange bug. I don't know what is the source of this problem at this moment. |
Talking with @khibino, it appeared that the timing to call |
3b829f1
to
f4b4f53
Compare
The essential reason for this bug is a thread is spawn for |
Merged. |
@edsko @FinleyMcIlwaine This PR simplifies the syncing way between workers and the sender.
A worker must take care of window for its stream.
So, the sender need not to take care of window for streams and can concentrates on window for the connection.
You don't have to understand the code in detail.
I would like you to test this PR with your stress testings.