From 50d2010ada2cf41c36df6c8540d2dd71650cc5a8 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Fri, 31 Oct 2003 05:03:46 +0000 Subject: [PATCH] * Stabilized the session proxy * Added 100 mode text downloads * Print server hello banner --- ctdlphp/ChangeLog | 6 +++++- ctdlphp/sessionproxy.php | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ctdlphp/ChangeLog b/ctdlphp/ChangeLog index c753f3aef..dac43a657 100644 --- a/ctdlphp/ChangeLog +++ b/ctdlphp/ChangeLog @@ -1,4 +1,8 @@ $Log$ + Revision 1.2 2003/10/31 05:03:46 ajc + * Stabilized the session proxy + * Added 100 mode text downloads + * Print server hello banner + Revision 1.1 2003/10/31 03:47:13 ajc * Initial CVS import - diff --git a/ctdlphp/sessionproxy.php b/ctdlphp/sessionproxy.php index ee4703eb6..09e35503a 100755 --- a/ctdlphp/sessionproxy.php +++ b/ctdlphp/sessionproxy.php @@ -124,7 +124,13 @@ do { if (substr($talkback, 0, 1) == "1") do { $buf = fgets($ctdlsock, 4096); - socket_write($msgsock, $buf, strlen($buf)); + if (!$buf) { + $buf = "000\n" ; + } + else { + socket_write($msgsock, $buf, + strlen($buf)); + } } while ($buf != "000\n"); } -- 2.30.2