Compare commits
	
		
			2 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 297fd28590 | ||
|  | 3325cff2a2 | 
							
								
								
									
										41
									
								
								LICENSE
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								LICENSE
									
									
									
									
									
										Normal 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. | ||||||
| @ -4,7 +4,9 @@ | |||||||
| 
 | 
 | ||||||
| A pair of coupled Unix sockets (or Windows pipes). | 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. | **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. | I would assume it is also not necessary in later versions. | ||||||
|  | |||||||
| @ -18,6 +18,7 @@ function createServer(prefix) { | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   var server = net.createServer({allowHalfOpen: true}); |   var server = net.createServer({allowHalfOpen: true}); | ||||||
|  |   server.unref(); | ||||||
|   promises[prefix] = new PromiseA(function (resolve, reject) { |   promises[prefix] = new PromiseA(function (resolve, reject) { | ||||||
|     server.once('error', reject); |     server.once('error', reject); | ||||||
| 
 | 
 | ||||||
|  | |||||||
							
								
								
									
										10
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								package.json
									
									
									
									
									
								
							| @ -1,15 +1,15 @@ | |||||||
| { | { | ||||||
|   "name": "socket-pair", |   "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", |   "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", |   "main": "lib/socket-pair.js", | ||||||
|   "scripts": { |   "scripts": { | ||||||
|     "test": "echo \"Error: no test specified\" && exit 1" |     "test": "echo \"Error: no test specified\" && exit 1" | ||||||
|   }, |   }, | ||||||
|   "repository": { |   "repository": { | ||||||
|     "type": "git", |     "type": "git", | ||||||
|     "url": "git+https://git.daplie.com/Daplie/socket-pair.git" |     "url": "https://git.coolaj86.com/coolaj86/socket-pair.js.git" | ||||||
|   }, |   }, | ||||||
|   "keywords": [ |   "keywords": [ | ||||||
|     "tls", |     "tls", | ||||||
| @ -23,9 +23,9 @@ | |||||||
|     "coupled", |     "coupled", | ||||||
|     "writer" |     "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", |   "license": "MIT OR Apache-2.0", | ||||||
|   "dependencies": { |   "dependencies": { | ||||||
|     "bluebird": "^3.5.0" |     "bluebird": "^3.5.1" | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user