[jira] [Created] (CXF-9046) JAX-RS performance client should close response objects after calls.

2024-08-13 Thread Jamie Mark Goodyear (Jira)
Jamie Mark Goodyear created CXF-9046:


 Summary: JAX-RS performance client should close response objects 
after calls.
 Key: CXF-9046
 URL: https://issues.apache.org/jira/browse/CXF-9046
 Project: CXF
  Issue Type: Improvement
Reporter: Jamie Mark Goodyear
 Fix For: 4.1.0


JAX-RS performance client should close response objects after calls.
When the client does not specifically close the object, then it waits on GC 
pass. 
Under heavy load one can overwhelm the client port range.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Assigned] (CXF-9046) JAX-RS performance client should close response objects after calls.

2024-08-13 Thread Andriy Redko (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-9046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andriy Redko reassigned CXF-9046:
-

Assignee: Jamie Mark Goodyear

> JAX-RS performance client should close response objects after calls.
> 
>
> Key: CXF-9046
> URL: https://issues.apache.org/jira/browse/CXF-9046
> Project: CXF
>  Issue Type: Improvement
>Reporter: Jamie Mark Goodyear
>Assignee: Jamie Mark Goodyear
>Priority: Minor
> Fix For: 4.1.0
>
>
> JAX-RS performance client should close response objects after calls.
> When the client does not specifically close the object, then it waits on GC 
> pass. 
> Under heavy load one can overwhelm the client port range.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (CXF-9046) JAX-RS performance client should close response objects after calls.

2024-08-13 Thread Andriy Redko (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-9046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andriy Redko resolved CXF-9046.
---
Resolution: Fixed

> JAX-RS performance client should close response objects after calls.
> 
>
> Key: CXF-9046
> URL: https://issues.apache.org/jira/browse/CXF-9046
> Project: CXF
>  Issue Type: Improvement
>Reporter: Jamie Mark Goodyear
>Assignee: Jamie Mark Goodyear
>Priority: Minor
> Fix For: 4.1.0
>
>
> JAX-RS performance client should close response objects after calls.
> When the client does not specifically close the object, then it waits on GC 
> pass. 
> Under heavy load one can overwhelm the client port range.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CXF-8931) HttpClientHTTPConduit can't disable the http chunk mode

2024-08-13 Thread John Tal (Jira)


[ 
https://issues.apache.org/jira/browse/CXF-8931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17873283#comment-17873283
 ] 

John Tal commented on CXF-8931:
---

[https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html]

> HttpClientHTTPConduit can't disable the http chunk mode
> ---
>
> Key: CXF-8931
> URL: https://issues.apache.org/jira/browse/CXF-8931
> Project: CXF
>  Issue Type: Bug
>Reporter: Jim Ma
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 4.1.0, 3.6.5, 4.0.6
>
>
> This works with URLConnectionHttpConduit, but this doesn't work with the new 
> HttpClientHTTPConduit. When set the HttpClientPolicy.setAllowChunking(false)
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Comment Edited] (CXF-8931) HttpClientHTTPConduit can't disable the http chunk mode

2024-08-13 Thread John Tal (Jira)


[ 
https://issues.apache.org/jira/browse/CXF-8931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17873283#comment-17873283
 ] 

John Tal edited comment on CXF-8931 at 8/13/24 7:26 PM:


[https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html]

If the user explicitly calls setChunking(false), you can reset() the stream 
after you've read it to calculate the size, then send in the size after you 
have done inputStream.reset().


was (Author: JIRAUSER303766):
[https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html]

> HttpClientHTTPConduit can't disable the http chunk mode
> ---
>
> Key: CXF-8931
> URL: https://issues.apache.org/jira/browse/CXF-8931
> Project: CXF
>  Issue Type: Bug
>Reporter: Jim Ma
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 4.1.0, 3.6.5, 4.0.6
>
>
> This works with URLConnectionHttpConduit, but this doesn't work with the new 
> HttpClientHTTPConduit. When set the HttpClientPolicy.setAllowChunking(false)
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CXF-8931) HttpClientHTTPConduit can't disable the http chunk mode

2024-08-13 Thread Andriy Redko (Jira)


[ 
https://issues.apache.org/jira/browse/CXF-8931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17873285#comment-17873285
 ] 

Andriy Redko commented on CXF-8931:
---

[~bodhione] please check 
[https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html#markSupported--]
 which states that mark() and reset() may or may not be supported

> HttpClientHTTPConduit can't disable the http chunk mode
> ---
>
> Key: CXF-8931
> URL: https://issues.apache.org/jira/browse/CXF-8931
> Project: CXF
>  Issue Type: Bug
>Reporter: Jim Ma
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 4.1.0, 3.6.5, 4.0.6
>
>
> This works with URLConnectionHttpConduit, but this doesn't work with the new 
> HttpClientHTTPConduit. When set the HttpClientPolicy.setAllowChunking(false)
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CXF-8931) HttpClientHTTPConduit can't disable the http chunk mode

2024-08-13 Thread John Tal (Jira)


[ 
https://issues.apache.org/jira/browse/CXF-8931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17873286#comment-17873286
 ] 

John Tal commented on CXF-8931:
---

[~reta] - Yes, openJDK 17 support it, as do most implementations I'm aware.  
You can call markSupported(), it false, then you default to chunked (and log a 
debug message?), if supported then you can use the reset()?

> HttpClientHTTPConduit can't disable the http chunk mode
> ---
>
> Key: CXF-8931
> URL: https://issues.apache.org/jira/browse/CXF-8931
> Project: CXF
>  Issue Type: Bug
>Reporter: Jim Ma
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 4.1.0, 3.6.5, 4.0.6
>
>
> This works with URLConnectionHttpConduit, but this doesn't work with the new 
> HttpClientHTTPConduit. When set the HttpClientPolicy.setAllowChunking(false)
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CXF-8931) HttpClientHTTPConduit can't disable the http chunk mode

2024-08-13 Thread Andriy Redko (Jira)


[ 
https://issues.apache.org/jira/browse/CXF-8931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17873339#comment-17873339
 ] 

Andriy Redko commented on CXF-8931:
---

[~bodhione] sure, as an option, but would you mind please help with the 
reproducer? I am wondering why this case was working before differently, thank 
you.

> HttpClientHTTPConduit can't disable the http chunk mode
> ---
>
> Key: CXF-8931
> URL: https://issues.apache.org/jira/browse/CXF-8931
> Project: CXF
>  Issue Type: Bug
>Reporter: Jim Ma
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 4.1.0, 3.6.5, 4.0.6
>
>
> This works with URLConnectionHttpConduit, but this doesn't work with the new 
> HttpClientHTTPConduit. When set the HttpClientPolicy.setAllowChunking(false)
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)