vulcand / vulcan

[DEPRECATING] Development has moved to https://github.com/vulcand/oxy
Apache License 2.0
357 stars 33 forks source link

Configurable Transport MaxIdleConnsPerHost #58

Closed manell closed 10 years ago

manell commented 10 years ago

This question is specific to httploc.HttpLocation. src

Maybe I did something wrong but I was doing some benchmarking with multiples connections and I was noticed that only 2 TCP connections were re-used between the proxy server and the final endpoint net/http. It could be possible to add some options parameter for set the MaxIdleConnsPerHost variable?

klizhentas commented 10 years ago

Interesting. Can you share the benchmark/measure details so I can reproduce?

klizhentas commented 10 years ago

@manell you can now supply these parameters via https://github.com/mailgun/vulcan/blob/master/location/httploc/httploc.go#L51

klizhentas commented 10 years ago

@manell Let me know if you'd need anything else. Meanwhile, I'm closing the issue