Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Renamed SocketClosedError to InboundSocketClosedError for clarity

  • Loading branch information...
commit cf4f65a1dbff74ece99ffe1194c588f4da196201 1 parent 71a14bf
@novemberborn novemberborn authored
Showing with 5 additions and 5 deletions.
  1. +3 −3 _errors.js
  2. +1 −1  _requestHandler.js
  3. +1 −1  main.js
View
6 _errors.js
@@ -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
2  _requestHandler.js
@@ -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
2  main.js
@@ -12,7 +12,7 @@ define([
"use strict";
return {
- SocketClosedError: errors.SocketClosedError,
+ InboundSocketClosedError: errors.InboundSocketClosedError,
Server: Server
};
});
Please sign in to comment.
Something went wrong with that request. Please try again.