Skip to content

Netty provider doesn't notify handler that a chunk is the last one #428

@slandelle

Description

@slandelle

Consequence: one cannot expect a HttpResponseBodyPart.isLast returning true in onBodyPartReceived.

The thing is that Netty notifies the end of the response stream with a special fake empty chunk. From my perspective, passing this fake chunk to the handler is just a waste (more work for computing response body) and you get notified in onCompleted anyway.

We have to come up with a decision here. Fix for 1.7.x? Drop isLast in 2.0?

Note that if we decide to fix, Netty and Grizzly providers won't notify the same number of chunks, so we'll have to adapt the tests.

@jfarcan @rlubke WDYT?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions