Skip to content

Commit

Permalink
Merge branch 'master' into drain_event_support_node6
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeZ99 committed Jan 12, 2012
2 parents ca9c953 + 2aa158f commit baed919
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Usage:
var limestone = require("./limestone").SphinxClient(),
sys = require("sys");

limestone.connect(9312, // port. 9312 is standard Sphinx port
limestone.connect(9312, // port. 9312 is standard Sphinx port. also 'host:port' allowed
function(err) { // callback
if (err) {
sys.puts('Connection error: ' + err);
Expand Down
4 changes: 1 addition & 3 deletions limestone.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,8 @@ exports.SphinxClient = function() {
var host = hostport[0].trim().length ? hostport[0].trim(): 'localhost' ;
var port = hostport[1].trim().length ? hostport[1].trim() : Sphinx.port;



var persistent = _persistent = args.length ? args.shift() : false;
console.log('connecting to : '+host+':'+port);

server_conn = tcp.createConnection(port, host);
server_conn.on('error', function(x){
console.log('Error: '+x);
Expand Down

0 comments on commit baed919

Please sign in to comment.