Skip to content

http: simplify drain

Simplify and slightly optimize draining outgoing http streams.

Avoid extra event listener and inline with rest of the drain logic.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

NOTE TO SELF: After this is merged add destroyed and ensure 'drain' is not emitted after destroy(). Also look into removing unnecessary flush class in write.

Merge request reports

Loading