gameServer/stresstest3.hs
changeset 5058 4229507909d6
parent 4932 f11d80bac7ed
child 7751 8c7f5c43ea5e
equal deleted inserted replaced
5057:b47ebd95c885 5058:4229507909d6
    60     evalStateT emulateSession sock
    60     evalStateT emulateSession sock
    61     --hClose sock
    61     --hClose sock
    62     putStr "-"
    62     putStr "-"
    63     hFlush stdout
    63     hFlush stdout
    64 
    64 
    65 forks = forM_ [1..100] $ const $ do
    65 forks = forever $ do
    66     delay <- randomRIO (10000::Int, 30000)
    66     delay <- randomRIO (0::Int, 80000)
    67     threadDelay delay
    67     threadDelay delay
    68     forkIO testing
    68     forkIO testing
    69 
    69 
    70 main = withSocketsDo $ do
    70 main = withSocketsDo $ do
    71 #if !defined(mingw32_HOST_OS)
    71 #if !defined(mingw32_HOST_OS)