Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

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

wsgiserver_confused_chunked_635.diff (0.5 kB) - added by pjenvey@groovie.org on 01/04/07 00:17:04.
small fix -- for #635

Change History

01/04/07 00:17:04: Modified by pjenvey@groovie.org

  • attachment wsgiserver_confused_chunked_635.diff added.

small fix -- for #635

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.

Hosted by WebFaction

Log in as guest/cpguest to create tickets