Fixed problem with timeout of connections without data.

Signed-off-by: gitta-mannen <mail@janpettersson.com>