Skip to content

Commit

Permalink
Fix "Connection prematurely closed BEFORE response" error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewelinagr committed Aug 8, 2023
1 parent 567f97a commit 276f322
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions projects/pluto/src/main/resources/application.yml
Expand Up @@ -33,9 +33,16 @@ spring:
default-filters:
- RemoveRequestHeader=Pragma X-Frame-Options X-Content-Type-Options X-XSS-Protection X-Permitted-Cross-Domain-Policies Origin
# Including the ORIGIN header would trigger CORS filtering downstream, but Pluto is already doing the filtering.
- name: Retry
args:
methods: GET,PUT,POST,DELETE
exceptions:
- reactor.netty.http.client.PrematureCloseException
httpclient:
connect-timeout: 2000
response-timeout: 600s
pool:
max-idle-time: 20s
x-forwarded:
port-enabled: false
host-enabled: false
Expand Down

0 comments on commit 276f322

Please sign in to comment.