Comparing version 1.8.1 to 1.8.2
18
awix.js
/** | ||
* awix 1.8.1 | ||
* awix 1.8.2 | ||
* Copyright (c) [2019.08] BraveWang | ||
@@ -360,17 +360,7 @@ * This software is licensed under the MPL-2.0. | ||
} | ||
var onerror = (err) => { | ||
if (the.config.debug) { console.log('--DEBUG-ERROR:',err); } | ||
stream.close(http2.constants.NGHTTP2_INTERNAL_ERROR); | ||
}; | ||
var onerror = (err) => { stream.destroy(); }; | ||
stream.on('frameError', (err) => { | ||
if (the.config.debug) { console.log('--DEBUG-FRAME-ERROR:',err); } | ||
stream.close(http2.constants.NGHTTP2_INTERNAL_ERROR); | ||
}); | ||
stream.on('frameError', onerror); | ||
stream.on('error', onerror); | ||
stream.on('aborted', () => { | ||
if (stream && !stream.closed) { | ||
stream.close(http2.constants.NGHTTP2_INTERNAL_ERROR); | ||
} | ||
}); | ||
stream.on('aborted', () => { stream.destroy(); }); | ||
@@ -377,0 +367,0 @@ if (the.methodList.indexOf(headers[':method']) < 0) { |
{ | ||
"name": "awix", | ||
"version": "1.8.1", | ||
"version": "1.8.2", | ||
"description": "a powerful web framework, build on module http2 and async/await.", | ||
@@ -5,0 +5,0 @@ "main": "awix.js", |
350858
1740