Initial
This commit is contained in:
8
resources/app/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js
generated
vendored
Normal file
8
resources/app/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
export const setSocketKeepAlive = (request, { keepAlive, keepAliveMsecs }) => {
|
||||
if (keepAlive !== true) {
|
||||
return;
|
||||
}
|
||||
request.on("socket", (socket) => {
|
||||
socket.setKeepAlive(keepAlive, keepAliveMsecs || 0);
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user