• Michael Yang's avatar
    fix race · 5ade3db0
    Michael Yang authored
    block on write which only returns when the channel is closed. this is
    contrary to the previous arrangement where the handler may return but
    the stream hasn't finished writing. it can lead to the client receiving
    unexpected responses (since the request has been handled) or worst case
    a nil-pointer dereference as the stream tries to flush a nil writer
    5ade3db0
routes.go 3.88 KB