aboutsummaryrefslogtreecommitdiff
path: root/examples/client-server.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'examples/client-server.tcl')
-rw-r--r--examples/client-server.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/client-server.tcl b/examples/client-server.tcl
index 4856e47..0740773 100644
--- a/examples/client-server.tcl
+++ b/examples/client-server.tcl
@@ -15,6 +15,7 @@ if {[os.fork] == 0} {
sleep .1
set f [socket stream localhost:9876]
+ fconfigure $f -buffering line
set done 0
@@ -30,7 +31,6 @@ if {[os.fork] == 0} {
proc onwrite {f} {
verbose "child: sending request"
$f puts -nonewline "GET / HTTP/1.0\r\n\r\n"
- $f flush
$f writable {}
}