From 3325cff2a29111fe47aa8e964ea630c2714f9e8b Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 29 May 2018 16:35:43 -0600 Subject: [PATCH] recover lost v1.0.3 and update docs --- LICENSE | 41 +++++++++++++++++++++++++++++++++++++++++ lib/socket-pair.js | 1 + package.json | 8 ++++---- 3 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b9ef4d3 --- /dev/null +++ b/LICENSE @@ -0,0 +1,41 @@ +Copyright 2017 AJ ONeal + +This is open source software; you can redistribute it and/or modify it under the +terms of either: + + a) the "MIT License" + b) the "Apache-2.0 License" + +MIT License + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +Apache-2.0 License Summary + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/lib/socket-pair.js b/lib/socket-pair.js index c83c0cc..2a9b9f2 100644 --- a/lib/socket-pair.js +++ b/lib/socket-pair.js @@ -18,6 +18,7 @@ function createServer(prefix) { } var server = net.createServer({allowHalfOpen: true}); + server.unref(); promises[prefix] = new PromiseA(function (resolve, reject) { server.once('error', reject); diff --git a/package.json b/package.json index ba3bf01..8ae6c8e 100644 --- a/package.json +++ b/package.json @@ -2,14 +2,14 @@ "name": "socket-pair", "version": "1.0.2", "description": "Similar to stream-pair, but with sockets with real fds. A workaround for https://github.com/nodejs/node/issues/12716", - "homepage": "https://git.daplie.com/Daplie/socket-pair#readme", + "homepage": "https://git.coolaj86.com/coolaj86/socket-pair.js", "main": "lib/socket-pair.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", - "url": "git+https://git.daplie.com/Daplie/socket-pair.git" + "url": "https://git.coolaj86.com/coolaj86/socket-pair.js.git" }, "keywords": [ "tls", @@ -23,9 +23,9 @@ "coupled", "writer" ], - "author": "AJ ONeal (https://coolaj86.com)", + "author": "AJ ONeal (https://coolaj86.com)", "license": "MIT OR Apache-2.0", "dependencies": { - "bluebird": "^3.5.0" + "bluebird": "^3.5.1" } }