mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-20 22:49:18 +00:00
cleanup
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
//TODO: cleanup stuff left over from OSC copy
|
|
||||||
import http from 'node:http';
|
import http from 'node:http';
|
||||||
import { URL } from 'node:url';
|
import { URL } from 'node:url';
|
||||||
|
|
||||||
@@ -44,11 +43,7 @@ export class HttpIntegration implements IIntegration<HttpSubscriptionOptions> {
|
|||||||
try {
|
try {
|
||||||
// this allows re-calling the init function during runtime
|
// this allows re-calling the init function during runtime
|
||||||
this.httpAgent?.destroy();
|
this.httpAgent?.destroy();
|
||||||
// this.httpAgent = new http.Agent({ keepAlive: true, timeout: 2000, maxSockets: 5, maxFreeSockets: 40 });
|
this.httpAgent = new http.Agent({ keepAlive: true, timeout: 2000 });
|
||||||
//TODO: find the correct settings
|
|
||||||
// this.httpAgent = new http.Agent({ keepAlive: true, timeout: 1000, maxFreeSockets: 10, maxSockets: 5});
|
|
||||||
this.httpAgent = new http.Agent({ keepAlive: false, timeout: 1000 });
|
|
||||||
// this.httpAgent = new http.Agent();
|
|
||||||
return {
|
return {
|
||||||
success: true,
|
success: true,
|
||||||
message: `HTTP integration client ready`,
|
message: `HTTP integration client ready`,
|
||||||
|
|||||||
Reference in New Issue
Block a user