excilys/gatling — Issue #221: Fix CustomAsyncHandler response time computation
Author: slandelle
Created: 2011-11-04 04:12:57+00:00
State: open

CustomAsyncHandler response time computation is wrong : it considers last analyzed HttpContent instead of last received HttpContent.
I think we should simplify a lot the current implementation.
All captures and checks should be performed :
* during onCompleted instead of at every HttpContent reception
* against the Response (the overhead of building the Response from the ResponseBuilder is neglectable, at least in the netty implementation) instead of HttpContent

This way, we could also have a generic AbstractCaptureProvider with a placeToSearch Type instead of the current Any ugly one.