`Receiver::on_application_write` does nothing
The first parameter to Receiver::on_application_write
is always 1, thus the if inside always fails.
In the C version, the first parameter was a queue size. As far as I understand the code, this queue will always only contain one or zero elements. In the async case, it should always be one at this point.
I guess it should be zero in the sync case, but then I think it should be added to the if blocks and we should drop this parameter.