View | Details | Raw Unified | Return to bug 55093
Collapse All | Expand All

(-)a/modules/fcgid/fcgid_bridge.c (+12 lines)
Lines 580-585 Link Here
580
                                          "temporary file");
580
                                          "temporary file");
581
                            return HTTP_INTERNAL_SERVER_ERROR;
581
                            return HTTP_INTERNAL_SERVER_ERROR;
582
                        }
582
                        }
583
                        /* The version of APR bundled width Apache 2.2.3 as used in  */
584
                        /* RHEL/CentOS 5 doesn't properly seek in apr_file_trunc     */
585
                        /* so do it manually, worst case should be a redundant lseek */
586
                        /* and if we don't we break Keep-Alive POSTs that are larger */
587
                        /* than FcgidMaxRequestInMem on RHEL/CentOS 5.x              */
588
                        apr_off_t zero = 0;
589
                        if (rv = apr_file_seek(fd, SEEK_SET, &zero) != APR_SUCCESS) {
590
                            ap_log_rerror(APLOG_MARK, APLOG_WARNING, rv, r,
591
                                          "mod_fcgid: can't seek to start of "
592
                                          "temporary file");
593
                            return HTTP_INTERNAL_SERVER_ERROR;
594
                        }
583
                    }
595
                    }
584
                }
596
                }
585
597

Return to bug 55093