Skip to content

Commit

Permalink
Update to node 0.1.30
Browse files Browse the repository at this point in the history
  • Loading branch information
janl committed Mar 1, 2010
1 parent 85309dc commit 2d91625
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions awesome.js
Expand Up @@ -25,7 +25,7 @@ var server = tcp.createServer(function(socket) {
var reply = {
send: function(s) {
debug("reply: '" + s || "null" + "'");
socket.send(s + eol);
socket.write(s + eol);
},

ok: function() {
Expand Down Expand Up @@ -885,7 +885,7 @@ var server = tcp.createServer(function(socket) {
var in_multi_bulk_request = false;
var cmd = {};
var cmd_len = false;
socket.addListener("receive", function(packet) {
socket.addListener("data", function(packet) {
buffer += packet;
debug("read: '" + buffer.substr(0, 128) + "'");
while(buffer.indexOf(eol) != -1) { // we have a newline
Expand Down

0 comments on commit 2d91625

Please sign in to comment.