Bucket.h

00001 /*
00002  *  Phusion Passenger - http://www.modrails.com/
00003  *  Copyright (C) 2008  Phusion
00004  *
00005  *  Phusion Passenger is a trademark of Hongli Lai & Ninh Bui.
00006  *
00007  *  This program is free software; you can redistribute it and/or modify
00008  *  it under the terms of the GNU General Public License as published by
00009  *  the Free Software Foundation; version 2 of the License.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License along
00017  *  with this program; if not, write to the Free Software Foundation, Inc.,
00018  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00019  */
00020 #ifndef _PASSENGER_BUCKET_H_
00021 #define _PASSENGER_BUCKET_H_
00022 
00023 /**
00024  * apr_bucket_pipe closes a pipe's file descriptor when it has reached end-of-stream,
00025  * but not when an error has occurred. That behavior conflicts with Phusion Passenger's
00026  * file descriptor management code.
00027  *
00028  * passenger_bucket is like apr_bucket_pipe, but never closes the pipe's file descriptor.
00029  * It also ignores the APR_NONBLOCK_READ because that's known to cause strange
00030  * I/O problems.
00031  */
00032 
00033 #include "apr_buckets.h"
00034 
00035 apr_bucket *passenger_bucket_create(apr_file_t *pipe, apr_bucket_alloc_t *list);
00036 
00037 #endif /* _PASSENGER_BUCKET_H_ */
00038 

Generated on Fri Jan 23 08:28:57 2009 for Passenger by  doxygen 1.4.7