summaryrefslogtreecommitdiffstats
path: root/tests/zlib.test
diff options
context:
space:
mode:
authorferrieux <ferrieux@users.sourceforge.net>2011-11-11 10:34:55 (GMT)
committerferrieux <ferrieux@users.sourceforge.net>2011-11-11 10:34:55 (GMT)
commitb80461fdf08565ff1206fe4c289700802a552f5d (patch)
tree10d73e146332a3d143292f69271bd014cba4889f /tests/zlib.test
parent036fbeb50e31683113c3194145c659cc0f82854c (diff)
downloadtcl-b80461fdf08565ff1206fe4c289700802a552f5d.zip
tcl-b80461fdf08565ff1206fe4c289700802a552f5d.tar.gz
tcl-b80461fdf08565ff1206fe4c289700802a552f5d.tar.bz2
Use nonblocking writes in single-threaded IO tests to avoid deadlocks when going beyond OS buffers [Bug 3428756].
Diffstat (limited to 'tests/zlib.test')
-rw-r--r--tests/zlib.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/zlib.test b/tests/zlib.test
index dac11e4..23f0229 100644
--- a/tests/zlib.test
+++ b/tests/zlib.test
@@ -197,7 +197,7 @@ test zlib-9.2 "socket fcopy with push" -constraints zlib -setup {
test zlib-9.3 "socket fcopy bg (identity)" -constraints {tempNotWin zlib} -setup {
set srv [socket -myaddr localhost -server {apply {{c a p} {
#puts "connection from $a:$p on $c"
- chan configure $c -encoding binary -translation binary
+ chan configure $c -encoding binary -translation binary -blocking 0
puts -nonewline $c [string repeat a 81920]
close $c
}}} 0]