Skip to content

Instantly share code, notes, and snippets.

Avatar

Igor Zinkovsky igorzi

View GitHub Profile
View keepalive.js
var net = require('net');
var serverConnections = 0;
var clientConnections = 0;
// Server: accept connections and set keep-alive
net.createServer(function(socket) {
socket.setKeepAlive(true, 0); // <-----
serverConnections++;
console.log(serverConnections);
View gist:1996552
info it worked if it ends with ok
verbose cli [ 'c:\\public\\errorMapping\\node.exe',
verbose cli 'c:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
verbose cli 'install' ]
info using npm@1.1.1
info using node@v0.6.13-pre
verbose config file C:\Users\igorzi\.npmrc
verbose config file c:\public\errorMapping\etc\npmrc
verbose config file c:\Program Files (x86)\nodejs\node_modules\npm\npmrc
verbose mkdir done: C:\Users\igorzi\AppData\Roaming\npm 755
View gist:1996441
npm http GET https://registry.npmjs.org/mkdirp/0.0.7
npm http 200 https://registry.npmjs.org/mkdirp/0.0.7
npm http GET https://registry.npmjs.org/mkdirp/-/mkdirp-0.0.7.tgz
npm http 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.0.7.tgz
npm ERR! error installing mkdirp@0.0.7
npm ERR! error rolling back mkdirp@0.0.7 Error: ENOTEMPTY, directory not empty '\\igorzi-dev8\public\node_modules\mkdirp
'
npm ERR! Error: ENOENT, no such file or directory '\\igorzi-dev8\public\node_modules\mkdirp\package.json'
npm ERR! You may report this log at:
View gist:1953469
From d97ed59d1c6d5ca939d5b47c7e498f81c8ec7a32 Mon Sep 17 00:00:00 2001
From: Igor Zinkovsky <igorzi@microsoft.com>
Date: Thu, 1 Mar 2012 13:49:23 -0800
Subject: [PATCH] fix test-net-pipe-connect-errors for windows
---
test/simple/test-net-pipe-connect-errors.js | 33 +++++++++++++++-----------
1 files changed, 19 insertions(+), 14 deletions(-)
diff --git a/test/simple/test-net-pipe-connect-errors.js b/test/simple/test-net-pipe-connect-errors.js
View enotsock.diff
From 6bbccf1fe0e000fd73e945368466cd27291483e3 Mon Sep 17 00:00:00 2001
From: Igor Zinkovsky <igorzi@microsoft.com>
Date: Thu, 1 Mar 2012 12:11:12 -0800
Subject: [PATCH] windows: return UV_ENOTSOCK when doing uv_pipe_connect to a
file
---
src/win/error.c | 1 +
src/win/pipe.c | 6 ++++++
test/test-list.h | 2 ++
View gist:1849710
00000000`0031e690 00000001`3fefc1a8 node!v8::internal::Handle<v8::internal::JSFunction>::operator*+0x5b [c:\src\node\deps\v8\src\handles-inl.h @ 65]
00000000`0031e6d0 00000001`3fee061c node!v8::internal::Handle<v8::internal::JSFunction>::operator->+0x28 [c:\src\node\deps\v8\src\handles.h @ 64]
00000000`0031e700 00000001`3fee05a8 node!v8::Function::NewInstance+0x5c [c:\src\node\deps\v8\src\api.cc @ 3569]
00000000`0031e860 00000001`3fcdb8ea node!v8::Function::NewInstance+0x38 [c:\src\node\deps\v8\src\api.cc @ 3563]
00000000`0031e890 00000001`3fce189a node!node::SetupProcessObject+0xca [c:\src\node\src\node.cc @ 1981]
00000000`0031f630 00000001`3fd12eb0 node!node::Start+0xda [c:\src\node\src\node.cc @ 2630]
00000000`0031f740 00000001`40317292 node!wmain+0x1b0 [c:\src\node\src\node_main.cc @ 61]
00000000`0031f7c0 00000001`4031719e node!__tmainCRTStartup+0xe2 [f:\dd\vctools\crt_bld\self_64_amd64\crt\src\crt0.c @ 278]
00000000`0031f810 00000000`772af56d node!wmainCRTStartup+0xe [f:\dd\vctools\crt_bld\self_64_amd64\
View gist:1849660
(968.ac4): Stack overflow - code c00000fd (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
node!v8::internal::ElementsAccessorBase<v8::internal::FastElementsAccessor,v8::internal::FixedArray>::AddElementsToFixedArray+0xe9:
00000001`400adda9 e832f4ffff call node!v8::internal::HasKey (00000001`400ad1e0)
0:000> k
Child-SP RetAddr Call Site
00000000`001d3fe0 00000001`4001704a node!v8::internal::ElementsAccessorBase<v8::internal::FastElementsAccessor,v8::internal::FixedArray>::AddElementsToFixedArray+0xe9 [c:\src\node\deps\v8\src\elements.cc @ 131]
00000000`001d4050 00000001`4001c30f node!v8::internal::UnionOfKeys+0x4a [c:\src\node\deps\v8\src\handles.cc @ 143]
00000000`001d40b0 00000001`400e8519 node!v8::internal::GetKeysInFixedArrayFor+0x26f [c:\src\node\deps\v8\src\handles.cc @ 813]
View vcexpress.patch
From 5e4425c51a6548562a20f310de329b74ab560985 Mon Sep 17 00:00:00 2001
From: Microsoft Interop Team <interopgithubuser@microsoft.com>
Date: Wed, 15 Feb 2012 11:07:00 -0800
Subject: [PATCH] 64bit build on vcexpress
---
vcbuild.bat | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/vcbuild.bat b/vcbuild.bat
View gist:1772895
From 8f7634cc77d8d1b49ba090f3c68baac7069af7ac Mon Sep 17 00:00:00 2001
From: Igor Zinkovsky <igorzi@microsoft.com>
Date: Wed, 8 Feb 2012 12:01:33 -0800
Subject: [PATCH] windows: allow client connections to half-duplex pipes
---
src/win/pipe.c | 68 ++++++++++++++++++++++++++++++++++++++++++++-----------
1 files changed, 54 insertions(+), 14 deletions(-)
diff --git a/src/win/pipe.c b/src/win/pipe.c
View gist:1761210
From 2ba75d69db5a74d61ea4dde54c9e3b4d78d69210 Mon Sep 17 00:00:00 2001
From: Igor Zinkovsky <igorzi@microsoft.com>
Date: Mon, 6 Feb 2012 22:53:39 -0800
Subject: [PATCH] enable 64bit windows build
---
common.gypi | 17 +-
deps/openssl/config/k8/openssl/opensslconf-posix.h | 278 +++++++++++++++++++
deps/openssl/config/k8/openssl/opensslconf-win32.h | 262 ++++++++++++++++++
deps/openssl/config/k8/openssl/opensslconf.h | 281 +-------------------
You can’t perform that action at this time.