2 Commits

Author SHA1 Message Date
91a8959c8d Add FIXME for pipe overflow 2023-07-11 02:12:26 +02:00
197756bf15 Fix typo 2023-07-11 02:12:12 +02:00
2 changed files with 2 additions and 1 deletions

View File

@@ -319,6 +319,7 @@ int fastcgi_recv_frame(fastcgi_cnx_t *cnx) {
cnx->fd_err_bytes += content_len + 1;
}
for (long ret, sent = 0; sent < content_len; sent += ret) {
// FIXME if pipe is full thread gets stuck
if ((ret = splice(cnx->socket.socket, 0, fd, 0, content_len - sent, 0)) == -1) {
if (errno == EINTR) {
errno = 0, ret = 0;

View File

@@ -1,7 +1,7 @@
/**
* sesimos - secure, simple, modern web server
* @brief FastCGI frame handler
* @file src/worker/fcti_frame_handler.c
* @file src/worker/fcgi_frame_handler.c
* @author Lorenz Stechauner
* @date 2023-01-22
*/