From 3ad283728dbcb52ba80de264ac53c6f9bac43b87 Mon Sep 17 00:00:00 2001 From: ferrieux Date: Fri, 11 Nov 2011 10:34:55 +0000 Subject: Use nonblocking writes in single-threaded IO tests to avoid deadlocks when going beyond OS buffers [Bug 3428756]. --- ChangeLog | 5 +++++ tests/zlib.test | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 82e2fe0..c82dfcc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-11-11 Alexandre Ferrieux + + * tests/zlib.test: Use nonblocking writes in single-threaded IO + tests to avoid deadlocks when going beyond OS buffers [Bug 3428756]. + 2011-11-03 Donal K. Fellows * unix/tclUnixCompat.c (TclpGetPwNam, TclpGetPwUid, TclpGetGrNam) 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] -- cgit v0.12