Skip to content

Commit

Permalink
Mention the connection_timeout parameter in the tutorial.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Scott authored and earl committed Jan 26, 2011
1 parent a92d819 commit 9bb313d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion TUTORIAL
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ To use beanstalkc we have to import the library and set up a connection to an
>>> beanstalk = beanstalkc.Connection(host='localhost', port=14711)

If we leave out the `host` and/or `port` parameters, `'localhost'` and `11300`
would be used as defaults, respectively.
would be used as defaults, respectively. There is also a `connection_timeout`
parameter which determines how long, in seconds, the socket will wait for the
server to respond to its initial connection attempt. If it is `None`, then there
will be no timeout; it defaults to 1.



Basic Operation
Expand Down

0 comments on commit 9bb313d

Please sign in to comment.