Skip to content

(0.4.x) Http client request with an error stream as content, never completes #419

@NiteshKant

Description

@NiteshKant

If the Observable supplied as content for HttpClientRequest produces an error, the request processing never completes. The following code reproduces the issue:

        RxNetty.createHttpPost("http://www.google.com", Observable.<ByteBuf>error(new NullPointerException()))
               .toBlocking()
               .lastOrDefault(null);

When Observable.<ByteBuf>error(new NullPointerException()) above is replaced with an Observable.<ByteBuf>empty() then the processing completes.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions