Skip to content

Conversation

daijithegeek
Copy link
Contributor

@daijithegeek daijithegeek commented Aug 4, 2022

... and callback completion right after headers are received.

All necessary information is present to ensure proper Jersey handling of the content.
Jetty client is perfectly able to stream data on-the-fly. But current Connector implementation awaits completion.
I've tested with ApacheConnector; it streams data correctly.

Unfortunately, the callback change generates an unwanted deadlock when reading an entity through a MessageBodyReader in org.glassfish.jersey.client.JerseyInvocation#translate.

The entity reading seems to be triggered by calling the response callback.
The Jetty thread does the call when using async(), but since it is also the one pushing contents to the buffer, the result is a deadlock.

…back completion right after headers are received.

All necessary information is present there to ensure proper Jersey handling of the content.

This implementation generates an unwanted deadlock though.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant