From: Fredrik Tolf Date: Sat, 5 Mar 2022 13:15:45 +0000 (+0100) Subject: Fixed some TransferOutput bugs. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=72715a9fadefd64bf37dca1977ebc3dd6d1f8c43;p=jagi.git Fixed some TransferOutput bugs. --- 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) {