-
Hi! Small files works just fine but when I try larger ones (about 100kB) the server throws:
and the client throws:
My wsdl looks like this (highly inspired by the example at https://docs.quarkiverse.io/quarkus-cxf/dev/user-guide/index.html):
I'm using Java17 and Quarkus CXF 3.2.4.Final on both client and service. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 13 replies
-
Hi @xperjon It looks like HTTP/2 is getting used by the server, so the below may be one possible approach to resolving your issue. Add the following dependency for client: <dependency>
<groupId>io.quarkiverse.cxf</groupId>
<artifactId>quarkus-cxf-rt-transports-http-hc5</artifactId>
</dependency> And then add the below to your client class: @PostConstruct
public void configureHttp2() {
Bus bus = ClientProxy.getClient(fileService).getBus();
bus.setProperty(AsyncHTTPConduit.USE_ASYNC, Boolean.TRUE);
bus.setProperty(AsyncHTTPConduit.ENABLE_HTTP2, Boolean.TRUE);
} You can read more about the above here: https://cxf.apache.org/docs/asynchronous-client-http-transport.html |
Beta Was this translation helpful? Give feedback.
-
Hmm, I just tried a simple test, I commented out the following in my patch. + bus.setProperty(AsyncHTTPConduit.ENABLE_HTTP2, Boolean.TRUE); And your unit test cases still pass; so looks like it is indeed unrelated to HTTP/2, and likely the async client is doing something differently than the sync one. Look forward to what you come up with for this issue! |
Beta Was this translation helpful? Give feedback.
-
That's very interesting, thanks for investigating @shumonsharif! |
Beta Was this translation helpful? Give feedback.
-
Hello, I remember that a cxf vert request réponse I have written have a buffer management with size. Maybe it need some ajustement |
Beta Was this translation helpful? Give feedback.
-
The root cause is fixed in Vert.x 4.4.5 - see #973 |
Beta Was this translation helpful? Give feedback.
The root cause is fixed in Vert.x 4.4.5 - see #973