Skip to content

Commit

Permalink
Comment out Keep-Alive and remove destroy() calls in tests
Browse files Browse the repository at this point in the history
Will not work in Node v0.2.4 or v0.2.5
  • Loading branch information
gsf committed Jan 24, 2011
1 parent 45bd53f commit e8098d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/solr.js
Expand Up @@ -125,10 +125,10 @@ Client.prototype.update = function (data, callback) {
method: "POST",
path: updatePath,
headers: {
// Keep-Alive needed for v0.2.5, but sometimes leaves
// connection hanging that must be manually destroyed
// Keep-Alive needed for Node v0.2.4 and v0.2.5, but sometimes
// leaves connection hanging that must be manually destroyed
// http://groups.google.com/group/nodejs-dev/browse_thread/thread/e9044c0778ac67d0
"Connection": "Keep-Alive",
//"Connection": "Keep-Alive",
"Content-Length": Buffer.byteLength(data),
"Host": this.fullHost
},
Expand Down
1 change: 0 additions & 1 deletion test/test-update-array.js
Expand Up @@ -38,7 +38,6 @@ client.del(null, '*:*', function(err) { // Clean up index
client.query('wakak_i:5', function(err, res) {
if (err) throw err;
assert.equal(JSON.parse(res).response.numFound, 3, 'Wrong number of docs in index.');
client.destroy();
});
});
});
Expand Down
1 change: 0 additions & 1 deletion test/test-update-xml.js
Expand Up @@ -19,7 +19,6 @@ client.del(null, '*:*', function(err) { // Clean up index
assert.equal(solr.getStatus(res), 0, 'Add document with value with XML characters failed.');
client.commit(function(err, res) {
if (err) throw err;
client.destroy();
});
});
});
Expand Down

0 comments on commit e8098d3

Please sign in to comment.