Ticket #635 (defect)
Opened 2 years ago
Last modified 2 years ago
An app_iter of ['', 'Test'] confuses wsgiserver's chunked_write
Status: closed (fixed)
| Reported by: | pjenvey@groovie.org | Assigned to: | rdelon |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | CherryPy code | Keywords: | wsgiserver |
| Cc: |
A WSGI app returning an iterable with an empty string as one of the iterations can cause a premature end to wsgiserver's chunked response. An empty string could occur in the middle of the iterable and will be sent as a 0 length chunk (the chunking EOF signal).
The iterable:
[, 'Test'] will return no response, where it should return 'Test'
The attached small patch solves this by avoiding any send during 0 length chunks
Attachments
Change History
01/04/07 00:17:04: Modified by pjenvey@groovie.org
- attachment wsgiserver_confused_chunked_635.diff added.
01/05/07 09:38:28: Modified by lawouach
- status changed from new to closed.
- resolution set to fixed.
Patch applied in [1586]. Test added to test_wsgiapp
Thanks for the report.


small fix -- for #635