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

.NET client connection.stop() takes 30 secs to complete #2191

Closed
gustavo-armenta opened this issue Jun 21, 2013 · 5 comments
Closed

.NET client connection.stop() takes 30 secs to complete #2191

gustavo-armenta opened this issue Jun 21, 2013 · 5 comments
Assignees
Milestone

Comments

@gustavo-armenta
Copy link
Contributor

It reproduces on every transport

await hubConnection.Start();
hubConnection.Stop();

WebSocket, SSE, LP

19:12:55.2533237 - null - ChangeState(Disconnected, Connecting)
19:12:55.4523505 - 21a550f9-23f7-4df1-97b3-c5904509206c - WS Connecting to: ws://localhost:40476/signalr/connect
19:12:55.4703526 - 21a550f9-23f7-4df1-97b3-c5904509206c - WS: OnMessage({"C":"d-B,5|L,0|D,5|M,2|N,1|O,0","M":[{"
19:12:55.4883550 - 21a550f9-23f7-4df1-97b3-c5904509206c - WS: OnMessage({"C":"d-B,5|L,0|D,5|M,2|N,1|O,0","M":[{"
19:12:55.4893550 - 21a550f9-23f7-4df1-97b3-c5904509206c - WS: OnMessage({"C":"d-B,5|L,0|D,5|M,2|N,1|O,0","M":[{"
19:12:55.4893550 - 21a550f9-23f7-4df1-97b3-c5904509206c - WS: OnMessage({"C":"d-B,5|L,0|D,5|M,2|N,1|O,0","M":[]}
19:12:55.4893550 - 21a550f9-23f7-4df1-97b3-c5904509206c - WS: OnMessage({"C":"d-B,5|L,0|D,5|M,2|N,1|O,0","S":1,"
19:12:55.4903558 - 21a550f9-23f7-4df1-97b3-c5904509206c - ChangeState(Connecting, Connected)
19:12:55.5063580 - 21a550f9-23f7-4df1-97b3-c5904509206c - Stop
19:13:25.5124206 - 21a550f9-23f7-4df1-97b3-c5904509206c - WS: Abort never fired
19:13:25.5124206 - 21a550f9-23f7-4df1-97b3-c5904509206c - Disconnected
19:13:25.5143666 - 21a550f9-23f7-4df1-97b3-c5904509206c - Closed

19:16:35.0776773 - null - ChangeState(Disconnected, Connecting)
19:16:35.2807041 - 6b511e84-a69f-4a4c-9bdc-6ef6de1bff2d - SSE: GET http://localhost:40476/signalr/connect
19:16:35.2917059 - 6b511e84-a69f-4a4c-9bdc-6ef6de1bff2d - SSE: OnMessage(Data: initialized)
19:16:35.2927060 - 6b511e84-a69f-4a4c-9bdc-6ef6de1bff2d - SSE: OnMessage(Data: {"C":"d-B,F|e,0|f,0|g,0","
19:16:35.3117432 - 6b511e84-a69f-4a4c-9bdc-6ef6de1bff2d - SSE: OnMessage(Data: {"C":"d-B,F|e,0|f,1|g,0","
19:16:35.3127105 - 6b511e84-a69f-4a4c-9bdc-6ef6de1bff2d - ChangeState(Connecting, Connected)
19:16:35.3277103 - 6b511e84-a69f-4a4c-9bdc-6ef6de1bff2d - Stop
19:17:05.3307202 - 6b511e84-a69f-4a4c-9bdc-6ef6de1bff2d - Abort never fired
19:17:05.3307202 - 6b511e84-a69f-4a4c-9bdc-6ef6de1bff2d - Disconnected
19:17:05.3347566 - 6b511e84-a69f-4a4c-9bdc-6ef6de1bff2d - Closed

19:17:46.2541825 - null - ChangeState(Disconnected, Connecting)
19:17:46.4602089 - 6f9ae92e-59c4-451c-be95-5fc69ecfdab1 - LP Connect: http://localhost:40476/signalr/connect
19:17:46.4742110 - 6f9ae92e-59c4-451c-be95-5fc69ecfdab1 - LP: OnMessage({"C":"d-B,13|k,0|l,0|m,0","M":[{"H":
19:17:46.4942145 - 6f9ae92e-59c4-451c-be95-5fc69ecfdab1 - LP Poll: http://localhost:40476/signalr/poll
19:17:46.4992149 - 6f9ae92e-59c4-451c-be95-5fc69ecfdab1 - LP: OnMessage({"C":"d-B,13|k,0|l,1|m,0","S":1,"M":
19:17:46.5002163 - 6f9ae92e-59c4-451c-be95-5fc69ecfdab1 - ChangeState(Connecting, Connected)
19:17:46.5162202 - 6f9ae92e-59c4-451c-be95-5fc69ecfdab1 - Stop
19:18:16.5182798 - 6f9ae92e-59c4-451c-be95-5fc69ecfdab1 - Abort never fired
19:18:16.5182798 - 6f9ae92e-59c4-451c-be95-5fc69ecfdab1 - Disconnected
19:18:16.5212256 - 6f9ae92e-59c4-451c-be95-5fc69ecfdab1 - Closed
@davidfowl
Copy link
Member

@gustavo-armenta Does it repro when you don't use await?

@ghost ghost assigned halter73 Jun 29, 2013
@davidfowl
Copy link
Member

@halter73 Since you started investigating this, take a look.

@gustavo-armenta
Copy link
Contributor Author

@halter73 @davidfowl
Could we add tests checking connection.Stop() and connection.Abort() complete in less than 5 seconds?

@gustavo-armenta
Copy link
Contributor Author

I can still repro

7/31/2013 12:58:02 PM
19:58:02.0413632 - 53235d0c-359e-4071-a704-fecc417a24dd - Stop
19:58:32.0447077 - 53235d0c-359e-4071-a704-fecc417a24dd - Abort never fired
19:58:32.0447077 - 53235d0c-359e-4071-a704-fecc417a24dd - Disconnected
19:58:32.0467376 - 53235d0c-359e-4071-a704-fecc417a24dd - Transport.Dispose(53235d0c-359e-4071-a704-fecc417a24dd)
19:58:32.0476224 - 53235d0c-359e-4071-a704-fecc417a24dd - Closed
7/31/2013 12:58:32 PM

@ghost ghost assigned halter73 Jul 31, 2013
halter73 added a commit that referenced this issue Aug 1, 2013
Ex repro:
await hubConnection.Start();
hubConnection.Stop();

#2191
@ghost ghost assigned gustavo-armenta Aug 1, 2013
@gustavo-armenta
Copy link
Contributor Author

tested
await hubConnection.Start();
hubConnection.Stop();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants