diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2026-07-04 04:03:12 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2026-07-04 04:03:12 +0000 |
| commit | 24daa5813f277023f7b8453338870369bf00a3ca (patch) | |
| tree | fc19981595bd9be15daef821c0b5259c4f4907cb /src/libtipidee/tipidee_fcgi_startread.c | |
| parent | 45808dbc6dc1b90fa512add692252bc15760a214 (diff) | |
| download | tipidee-24daa5813f277023f7b8453338870369bf00a3ca.tar.gz | |
Implement FastCGI, initial version
Diffstat (limited to 'src/libtipidee/tipidee_fcgi_startread.c')
| -rw-r--r-- | src/libtipidee/tipidee_fcgi_startread.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libtipidee/tipidee_fcgi_startread.c b/src/libtipidee/tipidee_fcgi_startread.c new file mode 100644 index 0000000..4899e55 --- /dev/null +++ b/src/libtipidee/tipidee_fcgi_startread.c @@ -0,0 +1,12 @@ +/* ISC license. */ + +#include <skalibs/buffer.h> + +#include <tipidee/fcgi.h> + +void tipidee_fcgi_startread (tipidee_fcgi *fc, int fd, pid_t pid, tain const *deadline) +{ + buffer_init(&fc->b, &buffer_read, fd, fc->buf, 4096) ; + fc->deadline = *deadline ; + fc->id = pid & 0xffffu ; fc->id += !fc->id ; +} |
