[REBOL] Re: [ports] [tcp] Detecting peer closing connection
From: g:santilli:tiscalinet:it at: 21-Nov-2003 14:37
Hi Petr,
On Friday, November 21, 2003, 2:08:32 PM, you wrote:
PK> http://www.escribe.com/internet/rebol/m15313.html
"You can detect whether your receive pipe has been closed by
the peer by performing a 'copy on the port, assuming the port
is in /no-wait mode. A none return means the other side has
closed its send pipe (your receive pipe), any other value means
that your receive pipe is still open."
This means I can assume that the behavior we have observed is a
bug?
PK> case was solved by simple adding /binary refinement - so - should
PK> open/direct/no-wait and open/direct/no-wait/binary behave differently?
I don't think it should in your case, but maybe the code in REBOL
that translates line terminators was interfering somehow?
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/