[luci] [LuCI] #130: httpclient does not always return full http body

LuciTrac trac at luci.subsignal.org
Wed May 19 22:15:48 CEST 2010


#130: httpclient does not always return full http body
-----------------------+----------------------------------------------------
 Reporter:  reporter   |       Owner:                           
     Type:  defect     |      Status:  new                      
 Priority:  major      |   Milestone:                           
Component:  LuCI Base  |    Keywords:  httpclient body truncated
-----------------------+----------------------------------------------------
 When issuing http[s] requests with the request_raw function in
 luci/libs/httpclient, the body of the http response is sometimes
 truncated. I could trace this down to this return statement:

 {{{
 return response.code, response, linesrc(true), sock
 }}}

 The linesrc(true) causes the UnifiedIO:linesource iterator to flush its
 internal buffer. If this buffer does not contain the entire http response
 body, a truncated body will be returned by request_raw.

 A patch against trunk has been attached.

 Cheers,
 Bart.

-- 
Ticket URL: <http://luci.subsignal.org/ticket/130>
LuCI <http://luci.subsignal.org>
LuCI - Lua Configuration Interface


More information about the luci mailing list