Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit db3b58e

Browse files
committed
add timeout value to timeoutexception
1 parent a54ca5d commit db3b58e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.AspNetCore.SignalR.Client.Core/HubConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public async Task StartAsync()
9494

9595
private void TimeoutElapsed()
9696
{
97-
_connection.AbortAsync(new TimeoutException("Server timeout elapsed without receiving a message from the server."));
97+
_connection.AbortAsync(new TimeoutException($"Server timeout ({ServerTimeout.TotalMilliseconds:0.00}ms) elapsed without receiving a message from the server."));
9898
}
9999

100100
private void ResetTimeoutTimer()

0 commit comments

Comments
 (0)