fcgiwrap works exactly once #15
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: tslocum/twins#15
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I was experimenting with running a Bash script with fcgiwrap. After booting the server, the very first request to my script (
gemini://localhost/testscript.sh
) succeeds, and outputs as expected. Any subsequent requests, however, fail. Restarting twins resets it; the first CGI request after restarting will succeed, and then every subsequent request fails.This happens when reloading the same script and when trying to access a different script. It also occurs regardless of the language used for the script (I tried a Python script as well).
I have also confirmed that this is not a problem with fcgiwrap by testing with the nginx configuration from this website. Everything worked as expected with nginx.
My twins test configuration:
And the script
testscript.sh
:Please run twins with --debug and share the output (including both requests).
There's not much to show
The second request never prints a log. Any subsequent request never prints a log. But the process is still running and has to be killed with
^C
. No extra debug information is printed either (I tried both--debug
and-debug
)Thanks. Seems like a deadlock. I will look into this and get back to you.
I'm still looking into this, but if you dont mind the content type being Gemini instead of plain text, you can simply use the
command
directive instead, and point it directly to the bash script.