projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce78fdc
)
Implementation of BINARY_FOLLOWS mode in sessionproxy.php (not tested)
author
Art Cancro
<ajc@citadel.org>
Wed, 16 May 2007 15:12:22 +0000
(15:12 +0000)
committer
Art Cancro
<ajc@citadel.org>
Wed, 16 May 2007 15:12:22 +0000
(15:12 +0000)
ctdlphp/sessionproxy.php
patch
|
blob
|
history
diff --git
a/ctdlphp/sessionproxy.php
b/ctdlphp/sessionproxy.php
index ee919ca99345f70455e1e3ef2d8b4eda611b9354..90e7ca3e380600b5f7599a284536b72520b99e58 100755
(executable)
--- a/
ctdlphp/sessionproxy.php
+++ b/
ctdlphp/sessionproxy.php
@@
-155,6
+155,13
@@
do {
}
} while ($buf != "000\n");
+ // BINARY_FOLLOWS mode
+ if (substr($talkback, 0, 1) == "6") {
+ $bytes = intval(substr($talkback, 4));
+ $buf = fread($ctdlock, $bytes);
+ socket_write($msgsock, $buf, $bytes);
+ }
+
// SEND_LISTING mode
if (substr($talkback, 0, 1) == "4") do {
socket_clear_error($msgsock);