gameServer/stresstest3.hs
changeset 3947 709fdb89f76c
parent 3741 73246d25dfe1
--- a/gameServer/stresstest3.hs	Sun Oct 10 12:53:16 2010 -0400
+++ b/gameServer/stresstest3.hs	Sun Oct 10 21:32:18 2010 +0400
@@ -52,6 +52,7 @@
     waitPacket "PROTO"
     b <- waitPacket "LOBBY:JOINED"
     --io $ print b
+    sendPacket ["QUIT", "BYE"]
     return ()
 
 testing = Control.OldException.handle print $ do
@@ -62,7 +63,7 @@
     putStr "-"
     hFlush stdout
 
-forks = forever $ do
+forks = forM_ [1..100] $ const $ do
     delay <- randomRIO (10000::Int, 30000)
     threadDelay delay
     forkIO testing