[Haskell-cafe] Long pauses / idle time in a Haskell TCP server

2012-10-08 Thread Alex Iliev
Hello, I'm seeing long pauses in a server based on the 'scalable-server' package from Hackage, version 0.2.2 [1]. It normally performs very well, about 100-150 micro-secs client latency over the loopback interface, but a fair number of requests are much slower, 38-40 milli-secs, making the mean

Re: [Haskell-cafe] Long pauses / idle time in a Haskell TCP server

2012-10-09 Thread Alex Iliev
Thanks for the tip Jamie! Setting NODELAY on the *client* resolved the problem; setting it on the server (both sockets) didn't make a difference. I'll see if I can figure out more about how this was going wrong - I did check the network traffic and the delay was at the server. But now I have a