[prev in list] [next in list] [prev in thread] [next in thread]
List: nginx
Subject: Re: [dev] how to read client body data
From: Manlio Perillo <manlio_perillo () libero ! it>
Date: 2007-08-22 10:47:42
Message-ID: 46CC144E.6020605 () libero ! it
[Download RAW message or body]
Igor Sysoev ha scritto:
> [...]
>> The request->request_body->temp_file->file->fd handle is opened for read
>> (and will be closed at request finalization)?
>
> Yes. Do not forget to test
>
> if (r->request_body && r->request_body->temp_file) {
>
>
Ok, so I can do:
if (r->request_body) {
if (r->request_body->temp_file) {
/* all the request body is in a temporary file */
fd = request_body->temp_file->file->fd;
... use the file descriptor for reading; no need to close it
}
else if (r->request_body->buf}
/* all the request body is in a buffer */
}
}
I'm right?
Thanks and regards Manlio Perillo
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic