Fix lock expired errors
This commit is contained in:
1 parent
6962cedba9
commit
450fc6fe53
3 files changed
+20
-5
No files matched your search
@@ -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 });
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user