You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
ThanhDat-Vo
changed the title
Flutter iOS: grpc-dart version: 3.0.2Connection was disconnected after changing network state (grpc-dart - version 3.0.2)
Flutter iOS: Connection was disconnected after changing network state (grpc-dart - version 3.0.2)
Jun 26, 2022
ThanhDat-Vo
changed the title
Flutter iOS: Connection was disconnected after changing network state (grpc-dart - version 3.0.2)
Flutter iOS: Connection was disconnected after changing network state from wifi <> cellular (grpc-dart - version 3.0.2)
Jun 26, 2022
ThanhDat-Vo
changed the title
Flutter iOS: Connection was disconnected after changing network state from wifi <> cellular (grpc-dart - version 3.0.2)
Flutter iOS: Connection was disconnected after changing network state between wifi <> cellular (grpc-dart - version 3.0.2)
Jun 26, 2022
By default grpc-dart uses package:http2 which uses dart:io underneath which uses BSD sockets, so the behaviour you are seeing is expected.
Right now the best solution you can come up with is to implement some code on the side to monitor network state changes and manually drop old connection and reconnect when network state changes.
As noted in the linked doc a possible solution to this problem would be to connect over CFStream - but currently we don't have a networking stack implementation that could do it. /cc @brianquinlan
Stream stops receiving messages after changing network state
grpc-dart version: 3.0.2
Repro steps
Expected result: connection should be kept after changing network state
Actual result: connection was disconnect. After long period of time, an UNAVAILABLE grpc error code returned.
Related problems:
Please help!
Thanks
The text was updated successfully, but these errors were encountered: