Possible bug sending http response from another thread