Read timeout from member variable

Store and read timeout from connection member variable so that it can be
configured. Fixes #20