Update to GreenRhombus 1.0.6

This commit is contained in:
Dorian Niemiec 2024-05-01 16:52:29 +02:00
parent 55ec899621
commit 86e2b00c25
2 changed files with 6 additions and 1 deletions

View file

@ -182,6 +182,11 @@ function createFastCGIHandler(options) {
if (typeof socket !== "undefined") { if (typeof socket !== "undefined") {
socket.removeListener("data", fastCGISocketHandler); socket.removeListener("data", fastCGISocketHandler);
processFastCGIPacket = function() {}; processFastCGIPacket = function() {};
try {
socket.end(); //Fixes connection not closing properly in Bun
} catch (err) {
//It is already closed
}
} }
var appStatus = processedPacket.content.readUInt32BE(0); var appStatus = processedPacket.content.readUInt32BE(0);
var protocolStatus = processedPacket.content.readUInt8(4); var protocolStatus = processedPacket.content.readUInt8(4);

View file

@ -1,4 +1,4 @@
{ {
"name": "GreenRhombus FastCGI client for SVR.JS", "name": "GreenRhombus FastCGI client for SVR.JS",
"version": "1.0.5" "version": "1.0.6"
} }