Can erlang httpc avoid connection reuse when a previous request hasn't yet finished?

Viewed 57

I have 2 kinds of requests to access my server: one is slow (30s) and the other is fast (3s). However, the faster one often works too slowly as the result of httpc reusing a connection created by the slower one (HTTP1.1 Keep-Alive). I tried setting the options of httpc as below:

httpc:set_options([{max_sessions, 100}, {max_keep_alive_length, 1}])

But it doesn't work perfectly, as the rate of the requests is still too low. Any ideas how I might get around this problem?

0 Answers
Related