git ssb

15+

ansuz / dnssb



Commit f27475f2be8b427a0440d8f3d297e33f2d4015be

Catch error even more

cel committed on 4/15/2017, 3:31:56 AM
Parent: 430f06d7898e5850d1c1eaac6802a6fe97590c4f

Files changed

lib/server.jschanged
lib/server.jsView
@@ -89,9 +89,15 @@
8989 res.answer = [];
9090 res.authority = [];
9191 res.additional = [];
9292 res.responseCode = 2; // SERVFAIL
93- res.end();
93 + try {
94 + res.end();
95 + } catch(e) {
96 + if (e && e.name !== 'This socket has been ended by the other party') {
97 + console.error('error serving dns', e)
98 + }
99 + }
94100 }
95101 });
96102 };
97103

Built with git-ssb-web