title: lua http socket timeout
body: <p>The LuaSocket HTTP module documentation says that a timeout can be set on a HTTP connection:</p>
  
  <p><i>The following constants can be set to control the default behavior of the HTTP module:</p>
  
  <p>PORT: default port used for connections;
  PROXY: default proxy used for connections;
  TIMEOUT: sets the timeout for all I/O operations;
  USERAGENT: default user agent reported to server.</i>
  <a href="http://w3.impa.br/~diego/software/luasocket/http.htm" rel="noreferrer">http://w3.impa.br/~diego/software/luasocket/http.htm</a></p>
  
  <p>How do I set these constants in a lua script?</p>