Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0521cf7

Browse files
Revert "git-fcgi: add buffering proxy to quickly read from fcgi"
This reverts commit c9dcd12.
1 parent c9dcd12 commit 0521cf7

3 files changed

Lines changed: 1 addition & 344 deletions

File tree

git-fcgi/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ RUN apt-get update && \
55
RUN mkdir -p /app
66
WORKDIR /app
77
COPY go-queue.go /app/
8-
COPY buffering-proxy.go /app/
98
RUN CGO_ENABLED=0 go build -o go-queue go-queue.go
10-
RUN CGO_ENABLED=0 go build -o buffering-proxy buffering-proxy.go
119

1210
FROM debian:bookworm
1311
LABEL maintainer="Justin Wong <[email protected]>"
@@ -25,7 +23,6 @@ COPY queue-wrapper.sh /queue-wrapper.sh
2523
RUN mkdir -p /data
2624

2725
COPY --from=builder --chown=0:0 /app/go-queue /go-queue
28-
COPY --from=builder --chown=0:0 /app/buffering-proxy /buffering-proxy
2926

3027
EXPOSE 5000
3128
CMD [ "/cmd.sh" ]

git-fcgi/buffering-proxy.go

Lines changed: 0 additions & 332 deletions
This file was deleted.

git-fcgi/cmd.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,10 @@
22

33
THREADS=${THREADS:-"64"}
44
QUEUE_SIZE=${QUEUE_SIZE:-"48"}
5-
MAX_BUFFER_SIZE=${MAX_BUFFER_SIZE:-"1G"}
6-
BUFFER_PATH=${BUFFER_PATH:-"/tmp"}
7-
85
export HOME=/var/www
96
(
107
while true; do
118
/go-queue --queue-size "${QUEUE_SIZE}" --port-number 8888
129
done
1310
)&
14-
(
15-
while true; do
16-
/buffering-proxy --listen ":5000" --max-buffer-size "${MAX_BUFFER_SIZE}" --on-disk-buffer-path "${BUFFER_PATH}" --upstream "unix:/tmp/fcgi.sock"
17-
done
18-
)&
19-
exec /usr/bin/spawn-fcgi -u www-data -g www-data -s /tmp/fcgi.sock -n -- /usr/bin/multiwatch -f "${THREADS}" -- /usr/sbin/fcgiwrap
11+
exec /usr/bin/spawn-fcgi -u www-data -g www-data -p 5000 -n -- /usr/bin/multiwatch -f ${THREADS} -- /usr/sbin/fcgiwrap

0 commit comments

Comments
 (0)