Browse files

Adding faq for timeout requests submited by shaib #36.

  • Loading branch information...
1 parent 080215a commit bc1a506b3409fb30c29e3d81cad8c61402841318 @bdelbosc bdelbosc committed Nov 3, 2011
Showing with 17 additions and 0 deletions.
  1. +17 −0 doc/source/faq.rst
@@ -45,6 +45,23 @@ How to accept invalid Cookies ?
# 'request host "%s"'%(domain, server)
+How to set a timeout on request ?
+FunkLoad uses (a patched) webunit, which uses httplib for the actual
+requests. It does not explicitly set a timeout, so httplib uses the
+global default from socket. By default, the global default is None,
+meaning "wait forever". Setting it to a value will cause HTTP requests
+made by FunkLoad to time out if the server does not respond in time.
+ import socket
+ socket.setdefaulttimeout(SECONDS)
+where SECONDS is, of course, your preferred timeout in seconds.
How to submit high load ?

0 comments on commit bc1a506

Please sign in to comment.