Compare commits

...

2 Commits

Author SHA1 Message Date
AJ ONeal
297fd28590 recover lost v1.0.3 and update docs 2018-05-29 16:37:31 -06:00
AJ ONeal
3325cff2a2 recover lost v1.0.3 and update docs 2018-05-29 16:35:43 -06:00
4 changed files with 50 additions and 6 deletions

41
LICENSE Normal file
View File

@ -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.

View File

@ -4,7 +4,9 @@
A pair of coupled Unix sockets (or Windows pipes).
Similar to `stream-pair`, but with sockets with real fds. A workaround for <https://github.com/nodejs/node/issues/12716>.
Similar to `stream-pair`, but with sockets with real fds and `.setTimeout()`.
Originally a workaround for <https://github.com/nodejs/node/issues/12716>,
but still has some use relevant cases, particularly when building proxies.
**Note**: This workaround is necessary in node v6.11.1, but not necessary in node v8.2.1.
I would assume it is also not necessary in later versions.

View File

@ -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);

View File

@ -1,15 +1,15 @@
{
"name": "socket-pair",
"version": "1.0.2",
"version": "1.0.4",
"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 <aj@daplie.com> (https://coolaj86.com)",
"author": "AJ ONeal <coolaj86@gmail.com> (https://coolaj86.com)",
"license": "MIT OR Apache-2.0",
"dependencies": {
"bluebird": "^3.5.0"
"bluebird": "^3.5.1"
}
}