Skip to content

Instantly share code, notes, and snippets.

@sivy
Created November 29, 2010 22:05
Show Gist options
  • Save sivy/720716 to your computer and use it in GitHub Desktop.
Save sivy/720716 to your computer and use it in GitHub Desktop.
var net = require('net');
var limestone = require('../limestone');
exports.testConnection = function () {
// fire up listener
var finx = net.createServer(function(){
console.log('got connection on port 9313')
});
finx.listen(9313, function(){
limestone.connect(9313, function(err) {
assert.isNull(err, 'Got connection');
});
limestone.disconnect();
});
};
dawnrider:limestone sivy$ expresso
got connection on port 9313
uncaught: Error: Stream.end() called already; cannot write.
at Stream.write (net:650:13)
at Stream.<anonymous> (/Users/sivy/Documents/PROJECTS/Personal/sphinxbox/node/limestone/limestone.js:115:29)
at Stream.emit (events:27:15)
at IOWatcher.<anonymous> (net:855:16)
at node.js:772:9
@RVFET
Copy link

RVFET commented Mar 1, 2022

OH MY GOD 11 YEARS AGO AND I'M STILL LOOKING FOR THIS PROBLEM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment