Hi Ryan

I can reproduce the defect and I think I know the root cause of it. I am still unsure, though, of the best way of dealing with the problem.

Please take a look at

https://github.com/apache/httpcomponents-client/pull/309

This is not a final fix. This PR is presently just a demonstrator and a place where we could discuss alternative approaches.

Cheers

Oleg

On 6/19/2021 7:33 PM, Ryan Schmitt wrote:
I'm not sure what the proper fix would be, since I don't currently
understand the CancellableDependency logic. I did find that deleting
the `throw` statement at InternalExecRuntime.java:109 allows the pool
entry to be cleaned up if it is already allocated, without any other
apparent regressions or changes in behavior.

On Sat, Jun 19, 2021 at 4:46 AM Oleg Kalnichevski <[email protected]> wrote:

Hi Ryan

Do you want to look into it or do you have a fix in mind?

Olegg

On 6/19/2021 12:49 AM, Ryan Schmitt wrote:
I've finally found the race condition I've been looking for. Here's
the reproducer:

https://github.com/rschmitt/httpclient-benchmark/commit/master

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to