HEAD request opening a TSBChannelStream unnecessarily
HEAD request opening a TSBChannelStream unnecessarily
February 13, 2012 - 08:19
In ChannelRequestInterceptor, TSBChannelStream is created even when a HEAD request is intercepted. The stream is stopped afterwards on seeing it is a HEAD request.
This is unnecessary. Especially because the inside TSBChannelStream constructor, tuning required to satisfy NetResourceUsage happens.
If a client just asks for HEAD request, it might result in Contention even though there isn't one required.





Validation of the request parameters requires creation of a TSBChannelStream in order to determine the available content range and other fields.