Browse files

Merge pull request #8 from glaslos/master

timeout parameter in new()
  • Loading branch information...
2 parents 47f86b5 + 387adf8 commit f25e0a3cd4df3e82a5b221c877b1100a97f01248 @rep committed Aug 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 cli/hpfeeds.py
View
4 cli/hpfeeds.py
@@ -156,6 +156,6 @@ def close(self):
try: self.s.close()
except: logger.warn('Socket exception when closing.')
-def new(host=None, port=10000, ident=None, secret=None, reconnect=True, sleepwait=20):
- return HPC(host, port, ident, secret, reconnect)
+def new(host=None, port=10000, ident=None, secret=None, timeout=3, reconnect=True, sleepwait=20):
+ return HPC(host, port, ident, secret, timeout, reconnect)

0 comments on commit f25e0a3

Please sign in to comment.