eclipse-ee4j / eclipse-ee4j/jersey

jdk-connector can not stream when POST/PUTing an entity with a known size

Open
#5,472 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

It looks like the jdk-connector does not stream a request entity when the Content-Length is known: it has to be buffered or chunked, whereas the HttpUrlConnector can (albeit incredibly slowly because of the default 8KB buffer size) transfer an input stream directly when the content length is set on the request.

Having said this, this is fairly minor as the chunked support seems decent and the back-end I'm talking to (openstack swift) is happy to accept a chunked request.

(Sorry, last one I hope)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.