From: Art Cancro Date: Fri, 31 Oct 2003 05:03:46 +0000 (+0000) Subject: * Stabilized the session proxy X-Git-Tag: v7.86~5730 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=50d2010ada2cf41c36df6c8540d2dd71650cc5a8 * Stabilized the session proxy * Added 100 mode text downloads * Print server hello banner --- 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"); }