[REBOL] Re: [BUG?] read-io & write-io or Wait or is TCL better?
From: Rebolinth:nodep:dds:nl at: 24-Dec-2003 22:30
--
Conversation/lunch: "How do you Eat your Rebol in the Morning?"
Quoting Andrew Martin
Hello Andrew,
I did ;-) but no effect...
BUT.... I just found someting amazingly strange in the rebol buffering:
bufsize: 8192 * 10 ;; for testing make it bigger
buffer: make binary! bufsize
after the while [ positive? size: read-io ......
I found that the Buffer is: 20479 bytes (length? buffer)
the data received: 17331 bytes (read-io)
data transmitted: 17331 bytes (write-io)
AND now the odd thing -->
The buffer should have been 17331 and not 20479 i assume.
(The ssh session crashed here too)
Because the read-io always returns the size of read bytes or extracts the
byte-size too big to fit in the buffer from the size (which is not the fact here)
Concluding: there is a some enthousiastic overrun here,
interacting read-io & write-io using a buffer,
the above caused the SSH the crash while the data entered my SSH client
(ssh <-- Rebol tunnel --> sshd ) = NOK
(ssh <-- TCL tunnel --> sshd ) = OK
(telnet <-- Rebol tunnel --> telnetd ) = OK
(http <-- Rebol tunnel --> httpd ) = OK
(ftp <-- Rebol tunnel --> ftpd ) OK
Mmmmm oddyyy..
Can someone confirm this perhpas?
(R)egards,
Norman.