RFR: 8222968 ByteArrayPublisher is not thread-safe resulting in broken re-use of HttpRequests
Chris Hegarty
chris.hegarty at oracle.com
Thu Jun 27 13:06:02 UTC 2019
> On 27 Jun 2019, at 12:56, Daniel Fuchs <daniel.fuchs at oracle.com> wrote:
>
> On 27/06/2019 12:30, Chris Hegarty wrote:
>> It is not an issue because there is an implicit reference ( from the
>> nested class ). If we believe that the publisher is not strictly needed,
>> then let's make the nested Subscription static, which will mean no ref,
>> and is explicit. Concerns?
>
> Not from me. But then it would be nice to have a comment wherever
> PullBlisher is not strongly referenced to explain that this is
> OK - so that next time we go over this code we don't have to
> double check again.
On second thoughts, let stick with Michael’s original change ( which
seems safest ).
-Chris.
More information about the net-dev
mailing list