couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject fauxton commit: updated refs/heads/master to 7a383eb
Date Mon, 01 Sep 2014 17:09:03 GMT
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 <rok@kowalski.gd>
Authored: Mon Sep 1 00:46:47 2014 +0200
Committer: Robert Kowalski <rok@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;


Mime
View raw message