fix cgi event handling, pipes were not always closed

fix net_http_write when used with chunked transfer encoding and non-blocking IO

(0) -300 -100 -30 -10 -2 +2 +10 +30 tip

mercurial