Messages per Month
| From | Sent On | Attachments |
|---|---|---|
| Manlio Perillo | Sep 16, 2007 10:36 am | |
| Igor Sysoev | Sep 16, 2007 10:43 am | |
| Manlio Perillo | Sep 16, 2007 11:07 am | |
| Igor Sysoev | Sep 16, 2007 11:13 am | |
| Manlio Perillo | Sep 16, 2007 11:35 am | |
| Igor Sysoev | Sep 16, 2007 11:43 am | |
| Adrian Perez de Castro | Sep 16, 2007 1:35 pm | |
| Manlio Perillo | Sep 16, 2007 1:50 pm | |
| Igor Sysoev | Sep 18, 2007 11:29 am | |
| Igor Sysoev | Sep 18, 2007 11:32 am | |
| Manlio Perillo | Sep 18, 2007 12:16 pm | |
| Igor Sysoev | Sep 18, 2007 12:30 pm | |
| Manlio Perillo | Sep 18, 2007 12:44 pm | |
| Adrian Perez de Castro | Sep 19, 2007 7:59 am | |
| Manlio Perillo | Sep 21, 2007 1:02 pm |
| Subject: | sending data in "chunks" | |
|---|---|---|
| From: | Manlio Perillo (manl...@public.gmane.org) | |
| Date: | Sep 16, 2007 10:36:26 am | |
| List: | ru.sysoev.nginx | |
Hi.
I need to send to the client some data in chunks. The data is read from a Python file like object.
Right now I'm using a static ngx_chain_t variable, and for each cycle I read data from the "file" object in a buffer and do:
// allocate buf and b out.buf = b; out.next = NULL;
b->pos = buf; b->last = buf + n;
b->memory = 1; b->last_buf = 0;
rc = ngx_http_output_filter(r, &out); if (rc != NGX_OK) { goto error;
Then at the end of the cycle, then, I do a
return ngx_http_output_filter(r, NULL);
Unfortunately this does not works. What is the right method for sending data in chunks?
Thanks Manlio Perillo





