Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding faq for timeout requests submited by shaib #36.

  • Loading branch information...
commit bc1a506b3409fb30c29e3d81cad8c61402841318 1 parent 080215a
@bdelbosc bdelbosc authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 doc/source/faq.rst
View
17 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 ?
----------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.