adding default timeout for socket. That stops connections to hang forever.
Merge pull request #2 from Z3po/treibholz_master

adding default timeout for socket. That stops connections to hang forever