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

Update connection.ts - operationTimeoutInSeconds is reset to default #112

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bogdanbrudiu
Copy link

…value

Description

Brief description of the changes made in the PR. This helps in making better changelog
operationTimeoutInSeconds - CreatedRheaConnectionOptions is not taken into consideration and the default 60 is used

rhea-promise/lib/connection.ts line 256
this.options.operationTimeoutInSeconds = options?.operationTimeoutInSeconds ?? defaultOperationTimeoutInSeconds;

Reference to any github issues

@jeremymeng
Copy link
Collaborator

@bogdanbrudiu thanks for the PR. could you add a unit case that covers issue?

@@ -253,7 +253,7 @@ export class Connection extends Entity {
}

this.options = this._connection.options;
this.options.operationTimeoutInSeconds = options?.operationTimeoutInSeconds ?? defaultOperationTimeoutInSeconds;
this.options.operationTimeoutInSeconds = this.options?.operationTimeoutInSeconds ?? defaultOperationTimeoutInSeconds;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure which one we should take when both this._connection.options.operationTimeoutInSeconds and options.operationTimeoutInSeconds are valid.

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

Successfully merging this pull request may close these issues.

2 participants