Permalink
Browse files

timeout parameter added

  • Loading branch information...
glaslos committed Jul 13, 2012
1 parent 47f86b5 commit 387adf861d95365797ff88b0e6bb12191a22fcee
Showing with 2 additions and 2 deletions.
  1. +2 −2 cli/hpfeeds.py
View
@@ -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 387adf8

Please sign in to comment.