HttpExchange/HttpRequest got retained by HttpSenderOverHTTP (#11782)

This commit is contained in:
Sheldon Shao 2024-05-13 00:14:55 -07:00 committed by GitHub
parent e594703a72
commit 1995b5ea59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -39,7 +39,6 @@ public class HttpSenderOverHTTP extends HttpSender
private final IteratingCallback headersCallback = new HeadersCallback();
private final IteratingCallback contentCallback = new ContentCallback();
private final HttpGenerator generator = new HttpGenerator();
private HttpExchange exchange;
private MetaData.Request metaData;
private ByteBuffer contentBuffer;
private boolean lastContent;
@ -62,7 +61,6 @@ public class HttpSenderOverHTTP extends HttpSender
{
try
{
this.exchange = exchange;
this.contentBuffer = contentBuffer;
this.lastContent = lastContent;
this.callback = callback;
@ -91,7 +89,6 @@ public class HttpSenderOverHTTP extends HttpSender
{
try
{
this.exchange = exchange;
this.contentBuffer = contentBuffer;
this.lastContent = lastContent;
this.callback = callback;
@ -157,6 +154,7 @@ public class HttpSenderOverHTTP extends HttpSender
protected Action process() throws Exception
{
HttpClient httpClient = getHttpChannel().getHttpDestination().getHttpClient();
HttpExchange exchange = getHttpExchange();
ByteBufferPool byteBufferPool = httpClient.getByteBufferPool();
boolean useDirectByteBuffers = httpClient.isUseOutputDirectByteBuffers();
while (true)