[REBOL] Socket flush or forcing a tcp port update
From: koopmans::itr::ing::nl at: 7-Aug-2001 16:59
I have a small but annoying problem with tcp and Rebol:
Say I have two consoles, 1>> and 2>>
The server:
1>> a: open tcp://:8001
1>> b: first a
2>> c: open tcp://localhost:8001
1>> l: copy {lalalala}
1>> write-io b l 4
2>> copy c
Gives a network time-out in c. Normally you'd open a port in direct mode, but I cannot
do that for b. Setting no-wait doesn't help either, as well as no-delay to true.
The only thing that works is inserting a lot of data in b
1>> loop 1000 [ write-io b l 6]
Rugby has the same problem on some platforms: inserting a small message (all at once)
and closing the port results (sometimes) in nothing being written over the port.
So my question: is there an equivalent of a socket flush for tcp ports?
--Maarten