You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ro...@apache.org on 2014/09/01 19:09:03 UTC

fauxton commit: updated refs/heads/master to 7a383eb

Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master 44095bc06 -> 7a383eb27


Devserver: do not throw on cancelled request

Catch error on a destroyed socket write, this happens for example
if you type in too fast on a typeahead-element which is asking
every time for a list of databases


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/7a383eb2
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/7a383eb2
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/7a383eb2

Branch: refs/heads/master
Commit: 7a383eb27dbf4bda8c432b43416feb4d635f01cc
Parents: 44095bc
Author: Robert Kowalski <ro...@kowalski.gd>
Authored: Mon Sep 1 00:46:47 2014 +0200
Committer: Robert Kowalski <ro...@kowalski.gd>
Committed: Mon Sep 1 19:10:14 2014 +0200

----------------------------------------------------------------------
 tasks/couchserver.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/7a383eb2/tasks/couchserver.js
----------------------------------------------------------------------
diff --git a/tasks/couchserver.js b/tasks/couchserver.js
index e576219..d9b8845 100644
--- a/tasks/couchserver.js
+++ b/tasks/couchserver.js
@@ -107,6 +107,10 @@ module.exports = function (grunt) {
       proxy.web(req, res);
     }).listen(port);
 
+    proxy.on('error', function (e) {
+      // don't explode on cancelled requests
+    });
+
     // Fail this task if any errors have been logged
     if (grunt.errors) {
       return false;