Skip to content

Blocking on polling operations prevents OAuth from working in Streaming scenarios #4673

@stevengum

Description

@stevengum

SDK Version: 4.10.x

In the 4.10.0 release the team cleaned up the code base which resulted in some background tasks being waited on. The default number of tasks and interval between each task results in dropped streaming connections due to timeouts. Bots will wait for the operations to complete and then finish its response to the channel.

// Wait for all the poll operations to complete.
Task.WaitAll(pollTokenTasks.ToArray());

These polling operations should not block, as they simulate the normal OOB HTTP OAuth flows (a TokenResponse Event activity is sent from the token service to the bot).

Metadata

Metadata

Assignees

Labels

Area: AuthenticationThe issue is related to authenticating users (SSO, OAuth, etc.)Area: StreamingIssues related to streaming supportP0Must Fix. Release-blockerbugIndicates an unexpected problem or an unintended behavior.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions