* Changing ping timeout to three seconds because this is only checked
  on an active connection which should answer right away
* removing whitespaces on ping