added default socket timeout. fixes #237