Yes, there is certainly a bug here.
Thanks,
-Chris.
Xuelei Fan wrote:
> Hi Chris,
>
> I need help on a HttpsClient method.
>
> The HttpClient.putInKeepAliveCache() will change the HttpClient.inCache value, and which will have effect on KeepAliveStreamCleaner via HttpClient.isInKeepAliveCache().
>
> However, the HttpsClient.putInKeepAliveCache() will not change the HttpClient.inCache value, so I think it would be a potential issue of KeepAliveStreamCleaner.
>
> I would submit a bug if you agree that the HttpsClient.putInKeepAliveCache() break the behaviors of KeepAliveStreamCleaner.
>
> Thanks,
> Andrew
Thanks,
-Chris.
Xuelei Fan wrote:
> Hi Chris,
>
> I need help on a HttpsClient method.
>
> The HttpClient.putInKeepAliveCache() will change the HttpClient.inCache value, and which will have effect on KeepAliveStreamCleaner via HttpClient.isInKeepAliveCache().
>
> However, the HttpsClient.putInKeepAliveCache() will not change the HttpClient.inCache value, so I think it would be a potential issue of KeepAliveStreamCleaner.
>
> I would submit a bug if you agree that the HttpsClient.putInKeepAliveCache() break the behaviors of KeepAliveStreamCleaner.
>
> Thanks,
> Andrew
- duplicates
-
JDK-8009251 Add proxy handling and keep-alive fixes to jsse
- Closed
- relates to
-
JDK-8282617 sun.net.www.protocol.https.HttpsClient#putInKeepAliveCache() doesn't use a lock while dealing with "inCache" field
- Resolved