Permalink
Browse files

Renamed SocketClosedError to InboundSocketClosedError for clarity

  • Loading branch information...
1 parent 71a14bf commit cf4f65a1dbff74ece99ffe1194c588f4da196201 @novemberborn novemberborn committed Mar 29, 2012
Showing with 5 additions and 5 deletions.
  1. +3 −3 _errors.js
  2. +1 −1 _requestHandler.js
  3. +1 −1 main.js
View
@@ -5,9 +5,9 @@ define([
"promised-io/lib/errorFactory"
], function(exports, errorFactory){
/**
- * class node-http-server.SocketClosedError
+ * class node-http-server.InboundSocketClosedError
*
- * The request socket was unexpectedly closed.
+ * The inbound request socket was unexpectedly closed.
**/
- exports.SocketClosedError = errorFactory("SocketClosedError", "Request socket closed.");
+ exports.InboundSocketClosedError = errorFactory("InboundSocketClosedError", "Inbound request socket closed.");
});
View
@@ -63,7 +63,7 @@ define([
.then(sendResponse.bind(res))
.fail(handleFailure.bind(res, reportError));
req.on("close", function(){
- promise.cancel(new errors.SocketClosedError);
+ promise.cancel(new errors.InboundSocketClosedError);
});
};
};
View
@@ -12,7 +12,7 @@ define([
"use strict";
return {
- SocketClosedError: errors.SocketClosedError,
+ InboundSocketClosedError: errors.InboundSocketClosedError,
Server: Server
};
});

0 comments on commit cf4f65a

Please sign in to comment.