Branch: refs/heads/master
Home:
https://github.com/resteasy/Resteasy
Commit: c24309c4f6454e21fff1f1fb4b28d6b3697f2343
https://github.com/resteasy/Resteasy/commit/c24309c4f6454e21fff1f1fb4b28d...
Author: Steven Schlansker <stevenschlansker(a)gmail.com>
Date: 2018-05-08 (Tue, 08 May 2018)
Changed paths:
M
resteasy-client-jetty/src/main/java/org/jboss/resteasy/client/jaxrs/engines/jetty/JettyClientEngine.java
M
resteasy-client-jetty/src/test/java/org/jboss/resteasy/test/client/jetty/JettyClientEngineTest.java
Log Message:
-----------
[RESTEASY-1862] JettyClientEngine: if buffered, make sure to actually buffer the entity
before returning (#1505)
In synchronous code this is no problem. In async code, returning here creates a race
between the ResultExtractor reading all data and the stream closing. Since we're
buffered
anyway, just force extraction to happen before we complete.
**NOTE:** This service been marked for deprecation:
https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from
GitHub.com on January 31st, 2019.