Network timeouts

Hi,

after several hours I get timeouts from the cardclient. 

"select timed out" are in my logs.

I found out that before we call "select" we must do FD_ZERO, FD_SET and set the timeout. After that changes I had no more network timeouts.