https://bz.apache.org/bugzilla/show_bug.cgi?id=63948

--- Comment #6 from Rodrigo Darti da Costa <rodrigoda...@gmail.com> ---
(In reply to Andy Wilkinson from comment #4)
> Rodrigo, you can customise the Http2Protocol by adding the following bean to
> your Spring Boot application:
> 
> @Bean
> public TomcatConnectorCustomizer http2ProtocolCustomizer() {
>   return (connector) -> {
>     for (UpgradeProtocol upgradeProtocol: connector.findUpgradeProtocols()) {
>       if (upgradeProtocol instanceof Http2Protocol) {
>         Http2Protocol http2Protocol = (Http2Protocol)upgradeProtocol;
>         http2Protocol.setOverheadContinuationThreshold(0);
>         http2Protocol.setOverheadDataThreshold(0);
>         http2Protocol.setOverheadWindowUpdateThreshold(0);
>       }
>     }
>   };
> }
> 
> With this bean in place in your sample application, I'm no longer able to
> reproduce the problem with curl 7.54.0 on macOS. With the hint from Mark
> that the problem may be client-specific, I also tried with curl 7.67.0 and
> the problem does not occur, even without the customization of the
> Http2Protocol.

Thx for all the help.

The error no longer occurs after deploying bean.

I am using the observable (subscribe) of angular to send the file, here is the
frameworks:

https://www.primefaces.org/primeng/#/fileupload

https://angular.io/guide/http

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to