Browse files

added a timeout of 300 seconds (to prevent python from dropping conne…

…ctions)
  • Loading branch information...
1 parent 693e942 commit 1905894311c59ed95de696c65cbc439dd39b5bb3 @hofmeister committed Apr 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 couchdb-external-hook.py
View
2 couchdb-external-hook.py
@@ -35,7 +35,7 @@ def main():
if len(args):
parser.error("Unrecognized arguments: %s" % ' '.join(args))
for req in requests():
- res = httplib.HTTPConnection(opts.remote_host, opts.remote_port)
+ res = httplib.HTTPConnection(opts.remote_host, opts.remote_port,timeout=300)
try:
resp = respond(res, req, opts.key)
except Exception, e:

0 comments on commit 1905894

Please sign in to comment.