What I found out: It can read the whole textfile. It must be the output to the socket! I was reading about "blocking", "nonblocking", "vwait" and "Tcl_DoOneEvent"! Of course all my tests with this failed and I got even more confused about it!fconfigure $sock -translation binary -buffersize 1000000 -blocking 0
set filechan [open $servfile r]
while {![eof $filechan]} {
gets $filechan html
puts $sock $html
flush $sock
}
close $filechan
The Delay-Command (tcl_sleep) didn't work as well!
How can I solve this problem?