Adds test for long-living keep-alive connections.
Avoid stack overflow on long-living connections.