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

change wmks retryConnectionInterval to a setting #655

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/app/state/vsphere/vsphere.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
VmResolution,
} from '../../models/vm/vm-model';
import { VmStore } from './vsphere.store';
import { ComnSettingsService } from '@cmusei/crucible-common';

declare var WMKS: any; // needed to check values

Expand Down Expand Up @@ -68,6 +69,7 @@ export class VsphereService {
private http: HttpClient,
private vsphereService: ApiVsphereService,
private vmStore: VmStore,
public settingsService: ComnSettingsService,
@Inject(BASE_PATH) basePath: string,
) {
this.apiUrl = basePath;
Expand Down Expand Up @@ -217,7 +219,8 @@ export class VsphereService {
changeResolution: this.model.isOwner,
rescale: true,
position: WMKS.CONST.Position.CENTER,
retryConnectionInterval: 5000, // Changed to 5 seconds. This affects initial connection to console.
retryConnectionInterval:
this.settingsService.settings.WMKS.RetryConnectionInterval,
});

if (readOnly) {
Expand Down
5 changes: 4 additions & 1 deletion src/assets/config/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@
{ "name": "Normal", "value": 60 },
{ "name": "Slow", "value": 100 },
{ "name": "Slowest", "value": 500 }
]
],
"WMKS": {
"RetryConnectionInterval": 5000
}
}
Loading