Warn if AsyncOutputStream::write()'s result promise is unused.
It turns out that, quite often, the write() will have already completed before the method returns, hence dropping the returned promise won't cause any apparent problem -- until you try to write() a sufficiently large value that it doesn't complete on the first call. Then, you get mysterious bugs. Indeed, it turns out the HTTP library has such bugs, which are fixed in this change.
Showing
Please
register
or
sign in
to comment