From 2406bdd6f76a85f19550e042be870b869c6b43ee Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Wed, 23 Sep 2009 20:37:34 -0500 Subject: [PATCH] benchmark.sockets: don't hang if an error occurs --- extra/benchmark/sockets/sockets.factor | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extra/benchmark/sockets/sockets.factor b/extra/benchmark/sockets/sockets.factor index d6e4f29b86..f103c377b9 100755 --- a/extra/benchmark/sockets/sockets.factor +++ b/extra/benchmark/sockets/sockets.factor @@ -23,7 +23,6 @@ CONSTANT: number-of-requests 1000 ] [ number-of-requests [ read1 write1 flush ] times - counter get count-down ] if ] with-stream ] curry "Client handler" spawn drop server-loop ; @@ -55,7 +54,7 @@ CONSTANT: number-of-requests 1000 : clients ( n -- ) dup pprint " clients: " write [ port-promise set - dup 2 * counter set + dup counter set [ simple-server ] "Simple server" spawn drop yield yield [ [ simple-client ] "Simple client" spawn drop ] times