Created
November 29, 2010 22:05
-
-
Save sivy/720716 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
}); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OH MY GOD 11 YEARS AGO AND I'M STILL LOOKING FOR THIS PROBLEM