Fix lock expired errors

This commit is contained in:
Zaid Humaimidi committed 2024-03-11 11:04:49 -07:00
1 parent 6962cedba9
commit 450fc6fe53
3 files changed
+20 -5

No files matched your search

+4
View File
@@ -41,6 +41,7 @@ interface ServerOptions {
ssl?: { key: string; cert: string };
timeout?: number;
keepAliveTimeout?: number;
requestTimeout?: number;
onConnection?: (socket: Socket) => void;
onClientError?: (err: Error, socket: Socket) => void;
}
@@ -152,6 +153,9 @@ export function start(
server.timeout = options.timeout || 0;
if (options.keepAliveTimeout != null)
server.keepAliveTimeout = options.keepAliveTimeout;
if (options.requestTimeout != null)
server.requestTimeout = options.requestTimeout;
server.listen({ port: options.port, host: options.host });
}