Getting low performance & errors while using reverse proxy

1. Caddy version (caddy version):

v2.4.4

2. How I run Caddy:

With the help of Caddyfile

a. System environment:

Ubuntu 20 , x86_64

b. Command:

caddy start

c. My complete Caddyfile or JSON config:

subdomain.domain.xyz {                                        
    reverse_proxy 127.0.0.1:8096
}

3. The problem I’m having:

Firstly Caddy is working very slow . For example , if i directly visit the original URL , it loads the page very fast & while accessing reverse proxied site with caddy ( subdomain.domain.xyz ) , it loads the page quite slower . Not just this , half of the times the page doesn’t even open &
continuously outputs error shown below

4. Error messages and/or full log output:

2021/09/02 06:47:33.112 ERROR   http.handlers.reverse_proxy     aborting with incomplete response       {"error": "client disconnected"}                                2021/09/02 06:47:33.112 ERROR   http.handlers.reverse_proxy     aborting with incomplete response       {"error": "client disconnected"}
2021/09/02 06:47:33.195 ERROR   http.handlers.reverse_proxy     aborting with incomplete response       {"error": "context canceled"}
2021/09/02 06:47:33.292 ERROR   http.handlers.reverse_proxy     aborting with incomplete response       {"error": "client disconnected"}
2021/09/02 06:47:33.444 ERROR   http.handlers.reverse_proxy     aborting with incomplete response       {"error": "client disconnected"}
2021/09/02 06:47:33.445 ERROR   http.handlers.reverse_proxy     aborting with incomplete response       {"error": "client disconnected"}
2021/09/02 06:47:33.546 ERROR   http.handlers.reverse_proxy     aborting with incomplete response       {"error": "client disconnected"}
2021/09/02 06:47:33.555 ERROR   http.handlers.reverse_proxy     aborting with incomplete response       {"error": "client disconnected"}

There’s not enough information here to understand what’s going on.

  • Please enable the debug global option, see if additional logs are output, which might reveal where the problem is.
  • Please try with v2.4.3, it may have been an issue introduced in v2.4.4.
  • What is your upstream app? How can we replicate this problem?

A post was split to a new topic: First requests are slow

This topic was automatically closed after 30 days. New replies are no longer allowed.