-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[SignalR TS] Pass timeout when invoking http requests #34207
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
Conversation
6ab6c99 to
fc7c19f
Compare
| * | ||
| * This will not apply to Long Polling poll requests, EventSource, or WebSockets. | ||
| */ | ||
| defaultHttpTimeoutInMilliseconds?: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we decided on httpTimeout for this, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That or defaultTimeout?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
httpTimeout is better IMO, used that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also like requestTimeout since this is already on IHttpConnectionOptions, but I'm fine with it as is.
|
Should we mark this |
|
Thank you for submitting this for API review. This will be reviewed by @dotnet/aspnet-api-review at the next meeting of the ASP.NET Core API Review group. Please ensure you take a look at the API review process documentation and ensure that:
|
|
API review: - httpTimeout?: number;
+ timeout?: number; |
|
Can you please make this change on the @microsft/signalr libary too? Sema Reaction: ❓ I have a question |
|
Hi @IlincaM. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context. |
That's what this change is for... you need to use a 6.0+ version to have the new API. |
Fixes #27762
IHttpConnectionOptions { skipNegotiation?: boolean; withCredentials?: boolean; + httpTimeout?: number; }