Commits
- Commit:
2c3e53dac6faed4d9502bd3310b4837f0d3112cf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
give each server process its own socket for the executor
this fixes a bug introduced with the prefork mechanics: every server
process shared the same socket, and this would cause a race condition
when multiple server processes asked for a script cgi being executed.
This gives each server process its own socket to talk to the executor,
so the race cannot happen.
- Commit:
52418c8d828bc25e0e84cc25d5e349a84be0b397
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix various compilation errors
Include gmid.h as first header in every file, as it then includes
config.h (that defines _GNU_SOURCE for instance).
Fix also a warning about unsigned vs signed const char pointers in
openssl.
- Commit:
b63e30ff449ee1cf0091d5431f9b72cdd3b1e7e0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
define TLS_CLIENT_NOT_BEFORE/NOT_AFTER in CGI scripts
- Commit:
9f006a2127398af12ecf9159cd5ef28b3685e7a6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
[cgi] split the query in words if needed and add them to the argv
- Commit:
a64959c99a63178209c3612c98c8c093bf60b431
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use log_err instead of fprintf
- Commit:
52053e1a61dcf07752f449f8f430855004d4037b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ensure CGI stdout it's blocking
- Commit:
ca21e1004303c6ccff7713813ab5238426414d8f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
reload configuration on SIGHUP
- Commit:
4e2e2ab1d3ac93821434c5e7723ffbcda1b0aee4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
refactor executor_main
now it's symmetrical to listener_main().
- Commit:
3e5418099fb2d44e0ffa9c65af66657cb28b466b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
[cgi] always set some variables
- Commit:
67528c1f82bed7d6626c3be7a68d3cd98b4944f5
- From:
- Omar Polo <op@omarpolo.com>
- Date:
don't add the query to argv
FRC3875 says that if the query does not contain any unecnoded "="
characters, we SHOULD treat the query string as a "search-string",
split in on "+" and add every word to the CGI argv.
In launch_cgi it's too late because iri->query is the *decoded* query!
I have in mind some refactoring around how we decode things, so this
is postponed.
- Commit:
2fafa2d23e5607def335902b7a9d10a9de5247a9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
bring the CGI implementation in par with GLV-1.12556
- Commit:
7808978667888512395e63519751796dacae8550
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix computed offset
Oh my, this is such a stupid mistake. It went undiscovered only
because I always used CGI scripts on the first vhost (and hence the
offset would be 0) and never on the others.
- Commit:
10782292833e092d37935a2c8b9e8e00bb88925d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
unveil x the vhosts directories
- Commit:
28ec61780962b6aa7b50845e3738399a92dc9e0c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sync the CGI environment with the manpage
while there also add SERVER_PROTOCOL
- Commit:
0baf6bed2a419b617d47e27c4687fccb1e721e49
- From:
- Omar Polo <op@omarpolo.com>
- Date:
pass the fd, not the path!