jamiewest / signalr_core

ASP.NET Core SignalR Dart Client
https://pub.dev/packages/signalr_core
MIT License
90 stars 58 forks source link

Server timeout after 30 seconds with long polling transport #87

Open jhlgns opened 2 years ago

jhlgns commented 2 years ago

Discussed in https://github.com/jamiewest/signalr_core/discussions/86

Originally posted by **jhlgns** February 5, 2022 https://github.com/jamiewest/signalr_core/blob/8c96e88d7aa94196cc76a47947579f9ea0fd6fb2/lib/src/hub_connection.dart#L340 Good day! I just ran into some issues with long polling transport. Although the server sends "Pong"-Messages to reply to the client "Ping"-Messages every few seconds, the `HubConnection` times out after 30s. How can I prevent these timeouts? The server is running fine like I mentioned. I was looking into the code that handles the timeout and I noticed for example that the check `if ((_connection!.features != null) || (_connection!.features.inherentKeepAlive == false)) { ... }` probably should be `_connection!.features == null`, shouldn't it?