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

Minor changes to fix some major issues on mobile when using gRPC. #149

Closed
wants to merge 3 commits into from

Conversation

slightfoot
Copy link

@slightfoot slightfoot commented Jan 8, 2019

  • Fixes bug when a ResponseStream is cancelled the underlying HTTP/2 stream is not disconnected so the transport never goes inactive/idle.
  • Add connectTimeout to socket connections.
  • Fixes bug where connect state is mismanaged on socket error.

@thelinuxfoundation
Copy link
Collaborator

Thank you for your pull request. Before we can look at your contribution, we need to ensure all contributors are covered by a Contributor License Agreement.

After the following items are addressed, please respond with a new comment here, and the automated system will re-verify.

Regards,
CLA GitHub bot

@slightfoot
Copy link
Author

Linux Foundation CLA signed.

Copy link
Contributor

@sigurdm sigurdm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to solve a lot of problems!

We only need regression tests - are you up for writing some?

lib/src/client/connection.dart Outdated Show resolved Hide resolved
@sigurdm
Copy link
Contributor

sigurdm commented Jan 10, 2019

And thanks a bunch for contributing

@slightfoot
Copy link
Author

Sorry, I just don't have the time.

@sigurdm
Copy link
Contributor

sigurdm commented Jan 10, 2019

No problem - I will look into this

magillus added a commit to magillus/grpc-dart that referenced this pull request Apr 10, 2019
@magillus
Copy link

Please merge or fix this issue. I was trying to solve issue when http2 connection restarted (due to local gRPC server restart) and auto connection.
I was going to prepare a PR then I saw this and applied that fix to my version - it works like a charm.

@slightfoot
Copy link
Author

@sigurdm did you get around to the tests?

@sigurdm
Copy link
Contributor

sigurdm commented Apr 12, 2019

Sorry for the long delay.
I have tried to split this a bit - I created a pr with atest for the cancelling behavior.
I think we can should split this further into the connect timeout and the error handling. I think that would make it much easier to land this.

@VladimirLuzhin
Copy link

Hellow, is there any information when this pull request will be merge to the master branch?

@v0l
Copy link

v0l commented Aug 2, 2019

This is badly needed..

@njovy
Copy link

njovy commented Oct 30, 2019

When is it going to be fixed? This is fairly critical for streams.

@VladimirLuzhin
Copy link

VladimirLuzhin commented Nov 21, 2019

Can you tell, when this pull request will be uploaded?

@slightfoot
Copy link
Author

@sigurdm do you want me split out the error and timeout behaviour?

@sigurdm
Copy link
Contributor

sigurdm commented Nov 22, 2019

Yes, that would be lovely

@slightfoot
Copy link
Author

slightfoot commented Nov 22, 2019

@sigurdm removed the connection timeout handling. Its also up to date on master.

@slightfoot
Copy link
Author

@sigurdm connection timeout is on separate branch.

slightfoot@11c9f42

@slightfoot
Copy link
Author

@sigurdm poke.. shall we try to get this merged before it goes out of date again.

@slightfoot
Copy link
Author

@sigurdm I just had someone reach out to me because they were caught out by the issues this ticket fixes. Can we get this merged?

@mit-mit
Copy link
Collaborator

mit-mit commented Sep 17, 2020

@mraleph can you help with merging this if we get this brought up to date?

@mraleph
Copy link
Member

mraleph commented Sep 25, 2020

I would be happy to land this @slightfoot! However this requires rebase and (regression) tests which validate fixed issues.

@mit-mit
Copy link
Collaborator

mit-mit commented Oct 26, 2020

@slightfoot any chance we can get you to rebase and add tests?

@mraleph
Copy link
Member

mraleph commented Oct 28, 2020

Closing as assumed stale for now.

@mraleph mraleph closed this Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants