tjanczuk/iisnode — Issue #121: perf: detect length of chunked transfer encoding messages
Author: tjanczuk
Created: 2011-12-15 20:56:39+00:00
State: open
Labels: P1, perf

Currently one named pipe connection per requests is used which allows us to rely on the heuristic that closing of that connection by the server implies the end of the response. Therefore we don't have to parse chunked responses. Two side effects of this design are that detecting the end of the response requires one extra ReadFile that causes one more context switch, and that we cannot reuse named pipe connections to the server for multiple requests (and creating new named pipe connections is expensive - about 7% of worker process time).

This is to implement a mechanism to detect the end of a chunked response by parsing chunked transfer encoding.