diff options
author | ferrieux <ferrieux@users.sourceforge.net> | 2011-11-11 10:34:55 (GMT) |
---|---|---|
committer | ferrieux <ferrieux@users.sourceforge.net> | 2011-11-11 10:34:55 (GMT) |
commit | 3ad283728dbcb52ba80de264ac53c6f9bac43b87 (patch) | |
tree | 10d73e146332a3d143292f69271bd014cba4889f /tests/zlib.test | |
parent | f9b9ca68f809e9a60a4f1c27c8ea43ef0167c26b (diff) | |
download | tcl-3ad283728dbcb52ba80de264ac53c6f9bac43b87.zip tcl-3ad283728dbcb52ba80de264ac53c6f9bac43b87.tar.gz tcl-3ad283728dbcb52ba80de264ac53c6f9bac43b87.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.test | 2 |
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] |