From 72715a9fadefd64bf37dca1977ebc3dd6d1f8c43 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Sat, 5 Mar 2022 14:15:45 +0100 Subject: [PATCH] Fixed some TransferOutput bugs. --- src/jagi/scgi/EventServer.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jagi/scgi/EventServer.java b/src/jagi/scgi/EventServer.java index 8218973..f617cf5 100644 --- a/src/jagi/scgi/EventServer.java +++ b/src/jagi/scgi/EventServer.java @@ -117,9 +117,12 @@ public class EventServer implements Runnable { if(!eof && (buf.remaining() == 0)) { buf.clear(); while(buf.remaining() > 0) { - if(in.read(buf) < 0) + if(in.read(buf) < 0) { + eof = true; break; + } } + buf.flip(); } double now = Driver.current().time(); if((events & SelectionKey.OP_WRITE) != 0) { -- 2.11.0