http client and keep_alive

Joel Reymont <>
Tue Jun 9 01:00:40 CEST 2009


Is there a way to disable keep_alive for the http client? I really  
want it to keep a single connection to the server and close it after  
each request.

I tried this set of options to http:request/4 but they don't do the  
trick.

http_client_opts() ->
     [{max_sessions, 1},
      {max_pipeline_length, 1},
      {max_keepalive_length, 1},
      {pipeline_timeout, 1},
      {keep_alive_timeout, 0}].

	Thanks, Joel

---
Mac hacker with a performance bent
http://www.linkedin.com/in/joelreymont



More information about the erlang-questions mailing list