From 6d0135c480337bb92849c8cdbc97e6c30575fd66 Mon Sep 17 00:00:00 2001 From: Federico Pereiro Date: Mon, 9 May 2022 21:34:02 +0200 Subject: [PATCH] v3.4.3 --- cicek.js | 3 ++- package.json | 2 +- readme.md | 2 +- test.js | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cicek.js b/cicek.js index aad62a6..546dd4f 100644 --- a/cicek.js +++ b/cicek.js @@ -1,5 +1,5 @@ /* -çiçek - v3.4.2 +çiçek - v3.4.3 Written by Federico Pereiro (fpereiro@gmail.com) and released into the public domain. @@ -211,6 +211,7 @@ Please refer to readme.md to read the annotated source (but not yet!). write.on ('finish', function () { fs.unlink (options.path, function (error) { if (error) return cicek.log (['error', 'logrotate delete error', error.toString (), error.stack]); + options.stream.destroy (); options.stream = fs.createWriteStream (options.path, {flags: 'a'}); options.streamIn.pipe (options.stream); }); diff --git a/package.json b/package.json index d8ca847..c19b895 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cicek", - "version": "3.4.2", + "version": "3.4.3", "description": "HTTP/HTTPS server.", "dependencies": { "busboy": "0.3.1", diff --git a/readme.md b/readme.md index 1da0605..0bde63a 100644 --- a/readme.md +++ b/readme.md @@ -26,7 +26,7 @@ ## Current status of the project -The current version of çiçek, v3.4.2, is considered to be *unstable* and *somewhat complete*. [Suggestions](https://github.com/fpereiro/cicek/issues) and [patches](https://github.com/fpereiro/cicek/pulls) are welcome. Future changes planned are: +The current version of çiçek, v3.4.3, is considered to be *unstable* and *somewhat complete*. [Suggestions](https://github.com/fpereiro/cicek/issues) and [patches](https://github.com/fpereiro/cicek/pulls) are welcome. Future changes planned are: - Improve `cicek.file`'s API. - Fix bug when exceptions are thrown in cluster mode. diff --git a/test.js b/test.js index d515323..1a65b1c 100644 --- a/test.js +++ b/test.js @@ -1,5 +1,5 @@ /* -çiçek - v3.4.2 +çiçek - v3.4.3 Written by Federico Pereiro (fpereiro@gmail.com) and released into the public domain. @@ -58,7 +58,7 @@ To run the test first run `node test` at the command prompt and then open the ur cicek.options.cookieSecret = 'c0okies3cret'; cicek.options.log.file.path = 'cicek.log'; - //cicek.options.log.file.rotationSize = 0.1, + //cicek.options.log.file.rotationSize = 0, //cicek.options.log.file.rotationFreq = 0.1, cicek.options.log.body = function (log) { return log.url.match (/auth/) === null;