I'm trying to use Toxiproxy to test a connection that is slow to open (I am specifically trying to test our Elastic Search configuration which has both a request_timeout and a request open_timeout which is shorter https://github.com/Shopify/shopify-app-store/pull/1297).
My test fails after the full timeout, not the open timeout (4 vs 2 seconds). From a discussion with @sirupsen he pointed out that this is probably because when the Elastic Search client is routed through Toxiproxy the Toxiproxy server accepts the connection immediately and then applies the toxic. From the Elastic Search client's perspective, it passed the request open_timeout for this reason.
For discussion
@sirupsen @xthexder @jpittis
I'm trying to use Toxiproxy to test a connection that is slow to open (I am specifically trying to test our Elastic Search configuration which has both a request_timeout and a request open_timeout which is shorter https://github.com/Shopify/shopify-app-store/pull/1297).
My test fails after the full timeout, not the open timeout (4 vs 2 seconds). From a discussion with @sirupsen he pointed out that this is probably because when the Elastic Search client is routed through Toxiproxy the Toxiproxy server accepts the connection immediately and then applies the toxic. From the Elastic Search client's perspective, it passed the request open_timeout for this reason.
For discussion
@sirupsen @xthexder @jpittis