Re: buffer in output filter

2008-01-07 Thread Joe Lewis
Christina Fu wrote: My filter is a connection filter at tcp level, so I think f->r may not exists. Thanks. Christina Joe Lewis wrote: Is it safe to use stack buffer (char out[8192]) here? since I added flush bucket. Have you considered using the f->r->pool for this? That would g

buffer in output filter

2008-01-03 Thread Christina Fu
Hi, Wish everyone a happy new year! I am writing a connection type output filter and have a question about the buffer. The filter reads a bucket, do some processing and put the result into a stack buffer, create a transient bucket from it, add a flush bucket and send to next filter. Is it safe t