Add FIXME for pipe overflow
This commit is contained in:
		@@ -319,6 +319,7 @@ int fastcgi_recv_frame(fastcgi_cnx_t *cnx) {
 | 
				
			|||||||
            cnx->fd_err_bytes += content_len + 1;
 | 
					            cnx->fd_err_bytes += content_len + 1;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        for (long ret, sent = 0; sent < content_len; sent += ret) {
 | 
					        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 ((ret = splice(cnx->socket.socket, 0, fd, 0, content_len - sent, 0)) == -1) {
 | 
				
			||||||
                if (errno == EINTR) {
 | 
					                if (errno == EINTR) {
 | 
				
			||||||
                    errno = 0, ret = 0;
 | 
					                    errno = 0, ret = 0;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user