enhanced how it can determine client's half-close changed how to compose cgi environment variables fixed a few bugs for various edge cases.