async-http-client icon indicating copy to clipboard operation
async-http-client copied to clipboard

AsyncHTTPClient calls flush after writing each part of the HTTP message

Open adam-fowler opened this issue 5 years ago • 0 comments

Repeatedly calling flush doesn't seem very optimal.

  • HTTPClient.execute calls writeAndFlush and because the body write isn't queued until the head has been written, the flush occurs immediately after the head has been written.
  • TaskHandler.writeBody calls writeAndFlush.

Ideally a simple HTTP request with one ByteBuffer shouldn't need to call flush until after the end part.

adam-fowler avatar Apr 22 '20 16:04 adam-fowler