﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18972	Refactor bundled WSGI server's chuking logic	amosonn@…	woodm	"on core/servers/basehttp.py, lines 97-103:
        if length > 33554432:                                                   
            offset = 0                                                          
            while offset < length:                                              
                chunk_size = min(33554432, length)                              
                self._write(data[offset:offset+chunk_size])                     
                self._flush()                                                   
                offset += chunk_size
Since only offset is increased, chunksize will always be 33554432, and on the last write might not be the actual amount written. Probably 
chunk_size = min(33554432, length-offset)
is better."	Bug	closed	HTTP handling	dev	Normal	fixed			Ready for checkin	1	0	0	0	1	0
