Avoid repeating send_chain() when it sent nothing
Previously, ngx_http_write_filter() re-posted the write event to
continue a capped send whenever output data remained and
c->write->ready was still set. This was wrong when c->send_chain()
returned without sending anything while the write event still looked
ready, notably when SSL_write() returned SSL_ERROR_WANT_READ. The
event was then re-posted on every event loop iteration, busy-looping
the worker at 100% CPU.
The implicit progress check was lost in
00f4be1ce (1.21.4). It is
now restored by requiring that c->send_chain() advanced c->sent.
Reported by yxd05.