Skip to content

Instantly share code, notes, and snippets.

@xk
Created April 6, 2011 07:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xk/905253 to your computer and use it in GitHub Desktop.
Save xk/905253 to your computer and use it in GitHub Desktop.
test socket.write()
var a= 'a';
var kMaxLength= Math.pow(2,27);
while (a.length < kMaxLength) {
a= [a,a].join('');
console.log("*** BEGIN -> " + a.length);
console.log(a);
console.log("*** END -> " + a.length);
}
a= null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment