1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/modules/caddyhttp/reverseproxy/fastcgi
WeidiDeng 83b26975bd
fastcgi: Optimize FastCGI transport (#4978)
* break up code and use lazy reading and pool bufio.Writer

* close underlying connection when operation failed

* allocate bufWriter and streamWriter only once

* refactor record writing

* rebase from master

* handle err

* Fix type assertion

Also reduce some duplication

* Refactor client and clientCloser for logging

Should reduce allocations

* Minor cosmetic adjustments; apply Apache license

* Appease the linter

Co-authored-by: Matthew Holt <mholt@users.noreply.github.com>
2022-09-02 16:57:55 -06:00
..
caddyfile.go fastcgi: allow users to log stderr output (#4967) (#5004) 2022-09-02 00:02:48 -04:00
client.go fastcgi: Optimize FastCGI transport (#4978) 2022-09-02 16:57:55 -06:00
client_test.go fastcgi: Optimize FastCGI transport (#4978) 2022-09-02 16:57:55 -06:00
fastcgi.go fastcgi: Optimize FastCGI transport (#4978) 2022-09-02 16:57:55 -06:00
header.go fastcgi: Optimize FastCGI transport (#4978) 2022-09-02 16:57:55 -06:00
pool.go fastcgi: Optimize FastCGI transport (#4978) 2022-09-02 16:57:55 -06:00
reader.go fastcgi: Optimize FastCGI transport (#4978) 2022-09-02 16:57:55 -06:00
record.go fastcgi: Optimize FastCGI transport (#4978) 2022-09-02 16:57:55 -06:00
writer.go fastcgi: Optimize FastCGI transport (#4978) 2022-09-02 16:57:55 -06:00