Skip to content

Commit 0bafc7e

Browse files
committed
feat: increase port check timeout to 2 seconds
1 parent 5f5057e commit 0bafc7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/browser/browserDiscovery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as dns from "dns"
55
/**
66
* Check if a port is open on a given host
77
*/
8-
export async function isPortOpen(host: string, port: number, timeout = 1000): Promise<boolean> {
8+
export async function isPortOpen(host: string, port: number, timeout = 2000): Promise<boolean> {
99
return new Promise((resolve) => {
1010
const socket = new net.Socket()
1111
let status = false

0 commit comments

Comments
 (0)